code: def np_assert(self, *, x, message, batched=False):
      if not isinstance(x, dict):
          raise TensorforceError(
              message.format(
                  name="", issue=("type {} != dict".format(type(x)))
              )
          )
  
      for name, spec, x in self.zip_items(x):
          if name is None:
              name = ""
          spec.np_assert(
              x=x,
              message=(
                  None
                  if message is None
                  else message.format(name=name, issue="{issue}")
              ),
          )
  
file_path: tensorforce/tensorforce/core/utils/tensors_spec.py
imports: from tensorforce import TensorforceError
  from tensorforce.core.utils import ArrayDict, NestedDict, SignatureDict, TensorDict, TensorSpec
label_desc: Use image node_id 5 for calling the TensorsSpec obj's underlying member method code with example usage: obj.np_assert() without return types