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: Extract items of given topic and return as list of objects.
  
  The topic is a string like TradeConfirm, ChangeInDividendAccrual,
  Order, etc.
docstr_tok: ["Extract","items","of","given","topic","and","return","as","list","of","objects",".","The","topic","is","a","string","like","TradeConfirm",",","ChangeInDividendAccrual",",","Order",",","etc","."]
code: def extract(self, topic: str, parseNumbers=True) -> list:
      """
      Extract items of given topic and return as list of objects.
  
      The topic is a string like TradeConfirm, ChangeInDividendAccrual,
      Order, etc.
      """
      cls = type(topic, (DynamicObject,), {})
      results = [cls(**node.attrib) for node in self.root.iter(topic)]
      if parseNumbers:
          for obj in results:
              d = obj.__dict__
              for k, v in d.items():
                  with suppress(ValueError):
                      d[k] = float(v)
                      d[k] = int(v)
      return results
  
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 3 for calling the FlexReport obj's underlying member method code with example usage: obj.extract(topic, parseNumbers) and returns: results