code: def _converter_factory(game_info: sc2api_pb2.ResponseGameInfo):
      return converter.Converter(
          converter_pb2.ConverterSettings(
              raw_settings=converter_pb2.ConverterSettings.RawSettings(
                  num_unit_features=40,
                  max_unit_selection_size=64,
                  max_unit_count=512,
                  resolution=common_pb2.Size2DI(x=128, y=128),
              ),
              num_action_types=540,
              num_unit_types=217,
              num_upgrade_types=86,
              max_num_upgrades=40,
          ),
          environment_info=converter_pb2.EnvironmentInfo(
              game_info=game_info
          ),
      )
  
imports: import concurrent.futures
  import random
  from absl.testing import absltest
  import dm_env
  from dm_env import test_utils
  import numpy
  from pysc2.env import converted_env
  from pysc2.env import mock_sc2_env
  from pysc2.env import sc2_env
  from pysc2.env.converter import converter
  from pysc2.env.converter.proto import converter_pb2
  from pysc2.lib import features
  from s2clientprotocol import common_pb2
  from s2clientprotocol import sc2api_pb2
label_desc: Use image node_id 2 for calling a global function with example usage: _converter_factory(game_info) and returns: converter