code: def unit_type(scale=None):
      """Returns a palette that maps unit types to rgb colors."""
      return categorical(static_data.UNIT_TYPES, scale)
  
imports: import collections
  import math
  import random
  import numpy
  from pysc2.lib import static_data
label_desc: Use image node_id 7 for calling a global function with example usage: unit_type(scale) and returns: categorical