code: def height_map(scale):
      return piece_wise_linear(
          scale,
          [
              (0, Color(0, 0, 0)),  # Abyss
              (
                  40 / 255,
                  Color(67, 109, 95),
              ),  # Water, little below this height.
              (50 / 255, Color(168, 152, 129)),  # Beach
              (60 / 255, Color(154, 124, 90)),  # Sand, the mode height.
              (70 / 255, Color(117, 150, 96)),  # Grass
              (
                  80 / 255,
                  Color(166, 98, 97),
              ),  # Dirt, should be the top.
              (1, Color(255, 255, 100)),  # Heaven. Shouldn't be seen.
          ],
      )
  
imports: import collections
  import math
  import random
  import numpy
  from pysc2.lib import static_data
label_desc: Use image node_id 6 for calling a global function with example usage: height_map(scale) and returns: piece_wise_linear