code: def explorer(launcher):
      partitions = AudioCraftEnvironment.get_slurm_partitions(
          ["team", "global"]
      )
      launcher.slurm_(gpus=4, partition=partitions)
  
      if "REGEN" not in os.environ:
          folder = (
              train.main.dora.dir / "grids" / __name__.split(".", 2)[-1]
          )
          with launcher.job_array():
              for sig in folder.iterdir():
                  if not sig.is_symlink():
                      continue
                  xp = train.main.get_xp_from_sig(sig.name)
                  launcher(xp.argv)
          return
  
      with launcher.job_array():
          audio_magnet = launcher.bind(
              solver="magnet/audio_magnet_16khz"
          )
  
          fsdp = {"autocast": False, "fsdp.use": True}
  
          # Small audio-MAGNeT model (300M)
          audio_magnet_small = audio_magnet.bind(
              {
                  "continue_from": "//pretrained/facebook/audio-magnet-small"
              }
          )
          eval(audio_magnet_small, batch_size=128)
  
          # Medium audio-MAGNeT model (1.5B)
          audio_magnet_medium = audio_magnet.bind(
              {
                  "continue_from": "//pretrained/facebook/audio-magnet-medium"
              }
          )
          audio_magnet_medium.bind_({"model/lm/model_scale": "medium"})
          audio_magnet_medium.bind_(fsdp)
          eval(audio_magnet_medium, batch_size=128)
  
imports: import os
  from ..musicgen._explorers import GenerationEvalExplorer
  from ...environment import AudioCraftEnvironment
  from ...None import train
label_desc: Use image node_id 2 for calling a global function with example usage: explorer(launcher) without return types