code: def _tensor_to_string(self):
      """Returns string representation of Tensor."""
      import_numpy()
  
      type_name = type(self).__name__
      indent = " " * 4
      layout = self.layout()
      data = np.array(_transfer_to_cpu(self, type_name[-3:]))
      data_str = np.array2string(data, prefix=indent, edgeitems=2)
  
      params = (
          [f"{type_name}(\n{indent}{data_str}", f"dtype={self.dtype}"]
          + ([f"layout={layout}"] if layout else [])
          + [f"shape={self.shape()})"]
      )
  
      return _join_string(params, False, 0, ",\n" + indent)
  
imports: from nvidia.dali.backend import TensorCPU, TensorListCPU, TensorGPU, TensorListGPU
label_desc: Use image node_id 4 for calling a global function with example usage: _tensor_to_string() and returns: _join_string