code: def encode(self, obj):
          
          try:
              return pickle.dumps(obj)
          except pickle.PicklingError as error:
              raise exceptions.EncodingError('pickle', error)
docs: Returns ``obj`` serialized as a pickle binary string.
  
          Raises
          ------
          ~ipfsapi.exceptions.EncodingError
  
          Parameters
          ----------
          obj : object
              Serializable Python object
  
          Returns
          -------
              bytes