code: def get(map_name):
      """Get an instance of a map by name. Errors if the map doesn't exist."""
      if isinstance(map_name, Map):
          return map_name
  
      # Get the list of maps. This isn't at module scope to avoid problems of maps
      # being defined after this module is imported.
      maps = get_maps()
      map_class = maps.get(map_name)
      if map_class:
          return map_class()
      raise NoMapError("Map doesn't exist: %s" % map_name)
  
file_path: pysc2/pysc2/maps/lib.py
imports: import os
  from absl import logging
label_desc: Use image node_id 2 for calling a global function with example usage: get(map_name) and returns: map_name, map_class