code: def as_dict(self, voigt=False):
          
          input_array = self.voigt if voigt else self
          d = {"@module": self.__class__.__module__,
               "@class": self.__class__.__name__,
               "input_array": input_array.tolist()}
          if voigt:
              d.update({"voigt": voigt})
          return d
docs: Serializes the tensor object
  
          Args:
              voigt (bool): flag for whether to store entries in
                  voigt-notation.  Defaults to false, as information
                  may be lost in conversion.
  
          Returns (Dict):
              serialized format tensor object