code: def _check_img_dtype(img):
      assert isinstance(
          img, np.ndarray
      ), "[Augmentation] Needs an numpy array, but got a {}!".format(
          type(img)
      )
      assert not isinstance(img.dtype, np.integer) or (
          img.dtype == np.uint8
      ), "[Augmentation] Got image of type {}, use uint8 or floating points instead!".format(
          img.dtype
      )
      assert img.ndim in [2, 3], img.ndim
  
imports: import inspect
  import numpy
  import pprint
  from typing import Any, List, Optional, Tuple, Union
  from fvcore.transforms.transform import Transform, TransformList
label_desc: Use image node_id 1 for calling a global function with example usage: _check_img_dtype(img) without return types