code: def is_volume(ndimage):
      ndimage = np.asarray(ndimage)
      if not is_batch(ndimage):
          return False
  
      if ndimage.ndim == 3 and ndimage.shape[2] >= 5:
          return True
      elif ndimage.ndim == 4 and ndimage.shape[3] < 5:
          return True
      else:
          return False
  
imports: import re
  import warnings
  from numbers import Number
  from pathlib import Path
  from typing import Dict
  import numpy
  from imageio.core.legacy_plugin_wrapper import LegacyPlugin
  from imageio.core.util import Array
  from imageio.core.v3_plugin_api import PluginV3
  from .None import formats
  from .config import known_extensions, known_plugins
  from .core import RETURN_BYTES
  from .core.imopen import imopen
label_desc: Use image node_id 5 for calling a global function with example usage: is_volume(ndimage) and returns: False, True, True, False