docs: def _read_and_deserialize_dataone_type(self, response):
          """Given a response body, try to create an instance of a DataONE type.
  
          The return value will be either an instance of a type or a DataONE exception.
  
          """
          try:
              return d1_common.xml.deserialize(response.content)
          except ValueError as e:
              self._raise_service_failure_invalid_dataone_type(response, e)