class_docstr: Translate torch.Tensor from and to numpy.ndarray
docstr: Translate numpy ndarray to torch.Tensor
docstr_tok: ["Translate","numpy","ndarray","to","torch.Tensor"]
code: def deserialize(self, data, content_type: str = "application/x-npy"):
      """Translate numpy ndarray to torch.Tensor"""
      try:
          return self.convert_from_numpy(data)
      except Exception as e:
          logger.error(e)
          raise ValueError(
              "Unable to translate data %s to torch.Tensor: %s "
              % (type(data), e)
          )
  
imports: from __future__ import absolute_import
  import logging
  import numpy
label_desc: Use image node_id 3 for calling the TorchTensorTranslator obj's underlying member method code with example usage: obj.deserialize(data, content_type) and returns: self