code: def parse_results(table):
      ret = symbolsxml.Writer()
      logger.info("Parsing table")
      rows = table.xpath("tr")
      for row in rows[1:]:
          cols = row.xpath("td")
          tickerSymbol = cols[TICKER_SYMBOL_COL].xpath("a[1]")[0].text
          company = cols[COMPANY_COL].xpath("a[1]")[0].text
          gics = cols[GICS_COL].text
          gicsSubIndustry = cols[GICS_SUB_INDUSTRY_COL].text
          if gicsSubIndustry is None:
              gicsSubIndustry = ""
  
          ret.addStock(tickerSymbol, company, gics, gicsSubIndustry)
      return ret
  
imports: import sys
  import pyalgotrade.logger
  import lxml.html
  import symbolsxml
label_desc: Use image node_id 3 for calling a global function with example usage: parse_results(table) and returns: ret