code: def make_converter_factories(
      all_converter_settings: Sequence[converter_pb2.ConverterSettings],
  ):
      """Makes converter factories from converter settings."""
  
      def converter_factory(
          settings: converter_pb2.ConverterSettings,
          game_info: sc2api_pb2.ResponseGameInfo,
      ):
          return converter_lib.Converter(
              settings,
              converter_pb2.EnvironmentInfo(game_info=game_info),
          )
  
      return [
          functools.partial(converter_factory, s)
          for s in all_converter_settings
      ]
  
imports: import functools
  import threading
  from typing import Any, Mapping, NamedTuple, Sequence
  import dm_env
  import numpy
  from pysc2.env.converter import converter
  from pysc2.env.converter.proto import converter_pb2
  from pysc2.lib import actions
  import tree
  import typing_extensions
  from s2clientprotocol import common_pb2
  from s2clientprotocol import raw_pb2
  from s2clientprotocol import sc2api_pb2
label_desc: Use image node_id 6 for calling a global function with example usage: make_converter_factories(all_converter_settings) and returns: unknown, converter_lib