code: def locate_color(cls, color, image):
      # TODO: Optimize for ms gain
  
      if image.shape[2] == 3:
          color_indices = np.where(
              np.all(image[:, :, :3] == color, axis=-1)
          )
      elif image.shape[2] == 4:
          color_indices = np.where(
              np.all(image[:, :, :3] == (list(color) + [255]), axis=-1)
          )
  
      return (
          list(zip(*color_indices)) if len(color_indices[0]) else list()
      )
  
file_path: SerpentAI/serpent/sprite.py
imports: import numpy
  import random
  import uuid
label_desc: Use image node_id 7 for calling the Sprite obj's underlying member method code with example usage: obj.locate_color(cls, color, image) and returns: unknown