code: def __parse_response(self, response):
      logging.debug("parsing response")
      tree = etree.fromstring(response)
  
      error = tree.find(".//errorMessage")
      if error is not None:
          error_msg = error.text
          logging.error("response had error message: %s", error_msg)
          raise Exception(error_msg)
      generated_token = tree[0][0]
      token_elements = [e.text for e in generated_token[0:4]]
      token = Token(*token_elements)
      return token
  
file_path: datalad/datalad/support/third/nda_aws_token_generator.py
imports: import binascii
  import hashlib
  import logging
  import xml.etree.ElementTree
  import sys
label_desc: Use image node_id 6 for calling the NDATokenGenerator obj's underlying member method code with example usage: obj.__parse_response(response) and returns: token