code: def validate_operator(how, is_image):
      name = how if is_image else how + "_arr"
      if is_image:
          if name not in image_operators:
              raise ValueError(
                  "Operator %r not one of the supported image operators: %s"
                  % (how, ", ".join(repr(el) for el in image_operators))
              )
      elif name not in array_operators:
          raise ValueError(
              "Operator %r not one of the supported array operators: %s"
              % (
                  how,
                  ", ".join(repr(el[:-4]) for el in array_operators),
              )
          )
  
file_path: datashader/datashader/composite.py
imports: from __future__ import annotations
  import numba
  import numpy
  import os
label_desc: Use image node_id 1 for calling a global function with example usage: validate_operator(how, is_image) without return types