code: def get_model(model=gin.REQUIRED):
      """Gin configurable function get a 'global' model for use in ddsp_run.py.
  
      Convenience for using the same model in train(), evaluate(), and sample().
      Args:
        model: An instantiated model, such as 'models.Autoencoder()'.
  
      Returns:
        The 'global' model specified in the gin config.
      """
      return model
  
imports: from ddsp.training.models.autoencoder import Autoencoder
  from ddsp.training.models.inverse_synthesis import InverseSynthesis
  from ddsp.training.models.midi_autoencoder import MidiAutoencoder
  from ddsp.training.models.midi_autoencoder import ZMidiAutoencoder
  from ddsp.training.models.model import Model
  import gin
label_desc: Use image node_id 1 for calling a global function with example usage: get_model(model) and returns: model