code: def desc_taxa(taxid, ncbi, outFH, just_taxids=False):
      
      # Main feature of the script is to get all taxa within a given group.	
      descendent_taxa = ncbi.get_descendant_taxa(taxid)
      descendent_taxa_names = ncbi.translate_to_names(descendent_taxa)
  
      if just_taxids:
          for taxid in descendent_taxa:
              outFH.write(str(taxid) + '\n')
      else:
          for dtn, dt in zip(descendent_taxa_names, descendent_taxa):
              x = [str(x) for x in [taxid, dt, dtn]]
              outFH.write('\t'.join(x) + '\n')
docs: Write descendent taxa for taxid