How to toggle the 'active' button that is on the top of the inspector via code?

Hey guys, i’m new to using unity. I’m trying to make a button (button one) toggle being active in the scene when I press another button (button two). Toggling the checkmark in the top right of the inspector seems to be the best way to do this, but how can I code this to happen?

Thank you.

4149958--365653--upload_2019-1-26_15-38-40.png

https://docs.unity3d.com/ScriptReference/GameObject.SetActive.html