class_docstr: Generate a LORIS API token by making a request to the
  LORIS login API endpoint with the given username
  and password.
  
  url is the complete URL of the $LORIS/api/$VERSION/login
  endpoint.
code: def __init__(self, url=None):
      assert url is not None
      self.url = url
  
file_path: datalad/datalad/support/third/loris_token_generator.py
imports: import sys
  import json
  from urllib.request import Request, urlopen
  from urllib.error import HTTPError
  from datalad.support.exceptions import AccessDeniedError
  from datalad.utils import ensure_unicode
label_desc: Use image node_id 1 to create a new LORISTokenGenerator object from inherited base classes: object with example: obj = LORISTokenGenerator(url)