code: def getHitmask(image):
      """returns a hitmask using an image's alpha."""
      mask = []
      for x in range(image.get_width()):
          mask.append([])
          for y in range(image.get_height()):
              mask[x].append(bool(image.get_at((x, y))[3]))
      return mask
  
imports: import pygame
  import sys
label_desc: Use image node_id 2 for calling a global function with example usage: getHitmask(image) and returns: mask