code: def find_table(htmlTree):
      logger.info("Finding the right table")
      ret = None
      tables = htmlTree.xpath("//table[@class='wikitable sortable']")
      for table in tables:
          headers = table.xpath("tr[1]/th")
          if len(headers) > 5:
              if (
                  headers[TICKER_SYMBOL_COL].xpath("a[1]")[0].text
                  != "Ticker symbol"
              ):
                  continue
              if headers[COMPANY_COL].text != "Company":
                  continue
              if headers[GICS_COL].xpath("a[1]")[0].text != "GICS":
                  continue
              if (
                  headers[GICS_SUB_INDUSTRY_COL].text
                  != "GICS Sub Industry"
              ):
                  continue
              ret = table
              break
      return ret
  
imports: import sys
  import pyalgotrade.logger
  import lxml.html
  import symbolsxml
label_desc: Use image node_id 2 for calling a global function with example usage: find_table(htmlTree) and returns: ret