class_docstr: To obtain a token:
  
  * Login to web portal
  * Go to Settings
  * Click on "Configure Flex Web Service"
  * Generate token
class_docstr_tok: ["To","obtain","a","token",":","*","Login","to","web","portal","*","Go","to","Settings","*","Click","on","``","Configure","Flex","Web","Service","''","*","Generate","token"]
docstr: Download a report by giving a valid ``token`` and ``queryId``,
  or load from file by giving a valid ``path``.
docstr_tok: ["Download","a","report","by","giving","a","valid","``","token","``","and","``","queryId","``",",","or","load","from","file","by","giving","a","valid","``","path","``","."]
code: def __init__(self, token=None, queryId=None, path=None):
      """
      Download a report by giving a valid ``token`` and ``queryId``,
      or load from file by giving a valid ``path``.
      """
      if token and queryId:
          self.download(token, queryId)
      elif path:
          self.load(path)
  
file_path: ib_insync/ib_insync/flexreport.py
imports: import logging
  import time
  import xml.etree.ElementTree
  from contextlib import suppress
  from urllib.request import urlopen
  from ib_insync import util
  from ib_insync.objects import DynamicObject
label_desc: Use image node_id 1 to create a new FlexReport object  with example: obj = FlexReport(token, queryId, path)