code: def _make_converter_settings(mode: str):
      if mode == "visual":
          return _make_converter_settings_common(
              visual_settings=converter_pb2.ConverterSettings.VisualSettings(
                  screen=common_pb2.Size2DI(
                      x=SCREEN_SIZE, y=SCREEN_SIZE
                  ),
                  screen_features=["height_map", "player_relative"],
              )
          )
      else:
          return _make_converter_settings_common(
              raw_settings=converter_pb2.ConverterSettings.RawSettings(
                  resolution=common_pb2.Size2DI(
                      x=RAW_RESOLUTION, y=RAW_RESOLUTION
                  ),
                  num_unit_features=NUM_UNIT_FEATURES,
                  max_unit_count=MAX_UNIT_COUNT,
                  max_unit_selection_size=MAX_UNIT_SELECTION_SIZE,
                  enable_action_repeat=True,
              )
          )
  
imports: from absl.testing import absltest
  from absl.testing import parameterized
  import numpy
  from pysc2.env.converter import converter
  from pysc2.env.converter.proto import converter_pb2
  from s2clientprotocol import common_pb2
  from s2clientprotocol import raw_pb2
  from s2clientprotocol import sc2api_pb2
  from s2clientprotocol import spatial_pb2
label_desc: Use image node_id 3 for calling a global function with example usage: _make_converter_settings(mode) and returns: _make_converter_settings_common, _make_converter_settings_common