code: def get_opencv_dtype_from_numpy(
      value: Union[np.ndarray, int, np.dtype, object]
  ) -> int:
      """
      Return a corresponding OpenCV dtype for a numpy's dtype
      :param value: Input dtype of numpy array
      :return: Corresponding dtype for OpenCV
      """
      if isinstance(value, np.ndarray):
          value = value.dtype
      return NPDTYPE_TO_OPENCV_DTYPE[value]
  
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 5 for calling a global function with example usage: get_opencv_dtype_from_numpy(value) and returns: NPDTYPE_TO_OPENCV_DTYPE