code: def test_disable_fog(self):
      obs = self.observe()
  
      for i, o in enumerate(obs):
          # Probes are active gathering
          for u in utils.get_units(
              o, unit_type=units.Protoss.Probe
          ).values():
              self.assert_unit(
                  u, display_type=sc_raw.Visible, is_active=True
              )
  
          # All Nexus are idle.
          own = utils.get_unit(
              o, unit_type=units.Protoss.Nexus, owner=i + 1
          )
          other = utils.get_unit(
              o, unit_type=units.Protoss.Nexus, owner=2 - i
          )
          self.assert_unit(
              own, display_type=sc_raw.Visible, is_active=False
          )
          self.assert_unit(
              other, display_type=sc_raw.Visible, is_active=False
          )
          self.assertEmpty(own.orders)
          self.assertEmpty(other.orders)
  
          # Give it an action.
          self.raw_unit_command(i, "Train_Probe_quick", own.tag)
  
      self.step(32)
      obs = self.observe()
  
      # All Nexus are active.
      for i, o in enumerate(obs):
          own = utils.get_unit(
              o, unit_type=units.Protoss.Nexus, owner=i + 1
          )
          other = utils.get_unit(
              o, unit_type=units.Protoss.Nexus, owner=2 - i
          )
          self.assert_unit(
              own, display_type=sc_raw.Visible, is_active=True
          )
          self.assert_unit(
              other, display_type=sc_raw.Visible, is_active=True
          )
          self.assertLen(own.orders, 1)
          self.assertEmpty(other.orders)
  
file_path: pysc2/pysc2/tests/obs_test.py
imports: from absl.testing import absltest
  from pysc2.lib import actions
  from pysc2.lib import buffs
  from pysc2.lib import features
  from pysc2.lib import units
  from pysc2.tests import utils
  from s2clientprotocol import debug_pb2
  from s2clientprotocol import raw_pb2
label_desc: Use image node_id 8 for calling the ObsTest obj's underlying member method code with example usage: obj.test_disable_fog() without return types