code: def is_grayscale_image(image: np.ndarray) -> bool:
      return (len(image.shape) == 2) or (
          len(image.shape) == 3 and image.shape[-1] == 1
      )
  
imports: from functools import wraps
  from typing import Callable, Union
  import cv2
  import numpy
  from typing_extensions import Concatenate, ParamSpec
  from albumentations.core.keypoints_utils import angle_to_2pi_range
  from albumentations.core.transforms_interface import KeypointInternalType
label_desc: Use image node_id 11 for calling a global function with example usage: is_grayscale_image(image) and returns: unknown