class_docstr: Serialize torch.Tensor to a buffer by converting tensor to numpy and call NumpySerializer.
  
  Args:
      data (object): Data to be serialized. The data must be of torch.Tensor type.
  Returns:
      raw-bytes: The data serialized as raw-bytes from the input.
code: def __init__(self, content_type="tensor/pt"):
      super(TorchTensorSerializer, self).__init__(
          content_type=content_type
      )
      from torch import Tensor
  
      self.torch_tensor = Tensor
      self.numpy_serializer = NumpySerializer()
  
imports: from __future__ import absolute_import
  import abc
  from collections.abc import Iterable
  import csv
  import io
  import json
  import numpy
  from pandas import DataFrame
  from six import with_metaclass
  from sagemaker.utils import DeferredError
label_desc: Use image node_id 1 to create a new TorchTensorSerializer object from inherited base classes: SimpleBaseSerializer with example: obj = TorchTensorSerializer(content_type)