code: def _inspect_data(data, is_batched):
      # TODO(klecki): Add asserts for uniform input batches (as well as output batches)
      if is_batched:
          as_numpy = batch_to_numpy(
              data,
              _tf_batch_error_msg,
              non_uniform_str=_tf_uniform_error_msg,
          )
          if isinstance(as_numpy, list):
              return as_numpy[0].dtype, (None,) * (as_numpy[0].ndim + 1)
          else:
              return as_numpy.dtype, (None,) * as_numpy.ndim
      else:
          as_numpy = sample_to_numpy(data, _tf_sample_error_msg)
          return as_numpy.dtype, (None,) * as_numpy.ndim
  
imports: from enum import Enum
  from nvidia.dali import types
  from nvidia.dali import tensors
  import inspect
  import functools
label_desc: Use image node_id 10 for calling a global function with example usage: _inspect_data(data, is_batched) and returns: as_numpy,  unknown, as_numpy,  unknown, as_numpy,  unknown