code: def check_dtype(img):
      assert isinstance(
          img, np.ndarray
      ), "[Augmentor] Needs an numpy array, but got a {}!".format(
          type(img)
      )
      assert not isinstance(img.dtype, np.integer) or (
          img.dtype == np.uint8
      ), "[Augmentor] Got image of type {}, use uint8 or floating points instead!".format(
          img.dtype
      )
  
imports: import copy
  import numpy
  from contextlib import contextmanager
  from ..utils import logger
  from ..utils.argtools import shape2d
  from .base import RNGDataFlow
  from .common import MapData, MapDataComponent
label_desc: Use image node_id 1 for calling a global function with example usage: check_dtype(img) without return types