parameters: ()
return_statement: return parties, maize_centromeres
docstring: Request cytoband data from all relevant institutes, simultaneously
docstring_summary: Request cytoband data from all relevant institutes, simultaneously
docstring_tokens: Request cytoband data from all relevant institutes simultaneously
function: def fetch_parties():
      """ Request cytoband data from all relevant institutes, simultaneously
      """
      parties = []
  
      num_threads = 3
      with ThreadPoolExecutor(max_workers=num_threads) as pool:
          print ('in fetch_cytobands_from_dbs, main')
          party_list = ['ensembl', 'ucsc', 'genomaize']
          for result in pool.map(pool_processing, party_list):
              party = result[0]
              if party == 'genomaize':
                  maize_centromeres = result[1]
              else:
                  parties.append(result)
  
      return parties, maize_centromeres
function_tokens: def fetch_parties ( ) : parties = [ ] num_threads = 3 with ThreadPoolExecutor ( max_workers = num_threads ) as pool : print ( 'in fetch_cytobands_from_dbs, main' ) party_list = [ 'ensembl' , 'ucsc' , 'genomaize' ] for result in pool . map ( pool_processing , party_list ) : party = result [ 0 ] if party == 'genomaize' : maize_centromeres = result [ 1 ] else : parties . append ( result ) return parties , maize_centromeres