code: def get_num_channels(image: np.ndarray) -> int:
      return image.shape[2] if len(image.shape) == 3 else 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 13 for calling a global function with example usage: get_num_channels(image) and returns: unknown