code: def get_generator_map():
      """Returns a map from the generator ID to a SequenceGenerator class creator.
  
      Binds the `config` argument so that the arguments match the
      BaseSequenceGenerator class constructor.
  
      Returns:
        Map from the generator ID to its SequenceGenerator class creator with a
        bound `config` argument.
      """
  
      def create_sequence_generator(config, **kwargs):
          return PolyphonyRnnSequenceGenerator(
              polyphony_model.PolyphonyRnnModel(config),
              config.details,
              steps_per_quarter=config.steps_per_quarter,
              **kwargs,
          )
  
      return {
          key: functools.partial(create_sequence_generator, config)
          for (key, config) in polyphony_model.default_configs.items()
      }
  
file_path: magenta/magenta/models/polyphony_rnn/polyphony_sequence_generator.py
imports: import copy
  import functools
  from magenta.models.polyphony_rnn import polyphony_lib
  from magenta.models.polyphony_rnn import polyphony_model
  from magenta.models.polyphony_rnn.polyphony_lib import PolyphonicEvent
  from magenta.models.shared import sequence_generator
  import note_seq
  import tensorflow.compat.v1
label_desc: Use image node_id 2 for calling a global function with example usage: get_generator_map() and returns: unknown, PolyphonyRnnSequenceGenerator