code: def make_taxonomy_dict(classification, parent=False):
      
  
      tax_id_map = {}
  
      if parent:
          for row in classification.results()["table"]:
              if row["parent_tax_id"] is not None and row["tax_id"] is not None:
                  tax_id_map[row["tax_id"]] = row["parent_tax_id"]
      else:
          for row in classification.results()["table"]:
              if row["parent_tax_id"] is not None and row["tax_id"] is not None:
                  try:
                      tax_id_map[row["parent_tax_id"]].add(row["tax_id"])
                  except KeyError:
                      tax_id_map[row["parent_tax_id"]] = set([row["tax_id"]])
  
      return tax_id_map
docs: Takes a classification data frame returned by the API and parses it
      into a dictionary mapping a tax_id to its children (or parent).
      Restricted to tax_id's that are represented in the classification
      results.