code: def get_printable_unit_types():
      """Generate the list of printable unit type characters."""
      types = {
          units.Protoss.Assimilator: "a",
          units.Protoss.Probe: "p",
          units.Protoss.Stalker: "s",
          units.Terran.SCV: "s",
          units.Terran.Marine: "m",
          units.Terran.SupplyDepot: "D",
          units.Terran.SupplyDepotLowered: "D",
      }
  
      substrings = {
          "MineralField": "$",
          "VespeneGeyser": "&",
          "Collapsible": "@",
          "Debris": "@",
          "Destructible": "@",
          "Rock": "@",
      }
      for name, unit_type in units.Neutral.__members__.items():
          for substring, char in substrings.items():
              if substring in name:
                  types[unit_type] = char
  
      for race in (units.Protoss, units.Terran, units.Zerg):
          for name, unit_type in race.__members__.items():
              if unit_type not in types:
                  types[unit_type] = name[0]
  
      return types
  
imports: from pysc2.lib import units
label_desc: Use image node_id 1 for calling a global function with example usage: get_printable_unit_types() and returns: types