code: def hot(scale):
      return piece_wise_linear(
          scale,
          [
              (0, Color(0.5, 0, 0) * 255),
              (0.2, Color(1, 0, 0) * 255),
              (0.6, Color(1, 1, 0) * 255),
              (1, Color(1, 1, 1) * 255),
          ],
      )
  
imports: import collections
  import math
  import random
  import numpy
  from pysc2.lib import static_data
label_desc: Use image node_id 5 for calling a global function with example usage: hot(scale) and returns: piece_wise_linear