code: def generate_token(self, username, password):
      logging.info("request to generate AWS token")
      encoded_password = self.__encode_password(password)
      request_xml = self.__construct_request_xml(
          username, encoded_password
      )
      return self.__make_request(request_xml)
  
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 2 for calling the NDATokenGenerator obj's underlying member method code with example usage: obj.generate_token(username, password) and returns: self