class_docstr: Holds the configuration options.
class_docstr_tok: ["Holds","the","configuration","options","."]
code: def __init__(self):
      # Environment.
      self.map_name = "Flat64"
      screen_resolution = point.Point(32, 32)
      minimap_resolution = point.Point(32, 32)
      self.camera_width = 24
      self.random_seed = 42
  
      self.interface = sc_pb.InterfaceOptions(
          raw=True,
          score=True,
          feature_layer=sc_pb.SpatialCameraSetup(
              width=self.camera_width
          ),
      )
      screen_resolution.assign_to(
          self.interface.feature_layer.resolution
      )
      minimap_resolution.assign_to(
          self.interface.feature_layer.minimap_resolution
      )
  
      # Hard code an action sequence.
      # TODO(petkoig): Consider whether the Barracks and Supply Depot positions
      # need to be dynamically determined.
      self.actions = {
          507: select(any_point, units.Terran.SCV),
          963: identity_function(
              "Build_SupplyDepot_screen", ["now", [25, 15]]
          ),
          1152: select(avg_point, units.Terran.CommandCenter),
          1320: identity_function("Train_SCV_quick", ["now"]),
          1350: identity_function("Train_SCV_quick", ["now"]),
          1393: identity_function("Train_SCV_quick", ["now"]),
          1437: identity_function("Train_SCV_quick", ["now"]),
          1522: select(any_point, units.Terran.SCV),
          1548: identity_function(
              "Build_Barracks_screen", ["now", [25, 25]]
          ),
          1752: select(avg_point, units.Terran.CommandCenter),
          1937: identity_function("Train_SCV_quick", ["now"]),
          2400: select(avg_point, units.Terran.Barracks),
          2700: identity_function("Train_Marine_quick", ["now"]),
          3300: identity_function("select_army", ["select"]),
      }
      self.num_observations = max(self.actions.keys()) + 2
      self.player_id = 1
  
imports: from absl.testing import absltest
  from pysc2 import maps
  from pysc2 import run_configs
  from pysc2.lib import actions
  from pysc2.lib import features
  from pysc2.lib import point
  from pysc2.lib import renderer_ascii
  from pysc2.lib import units
  from pysc2.tests import utils
  from s2clientprotocol import common_pb2
  from s2clientprotocol import sc2api_pb2
label_desc: Use image node_id 1 to create a new Config object from inherited base classes: object with example: obj = Config()