code: def _is_numpy_image(img):
      return isinstance(img, np.ndarray) and (img.ndim in {2, 3, 4})
  
imports: from typing import List, Tuple, Union, Callable
  import collections
  import numbers
  import random
  import numpy
  import scipy
  import scipy.ndimage
  import SimpleITK
  from scipy.ndimage.filters import gaussian_filter, gaussian_gradient_magnitude
  from skimage.transform import resize
label_desc: Use image node_id 6 for calling a global function with example usage: _is_numpy_image(img) and returns: unknown