def extract_sponsor(bill):
logger.debug("<STR_LIT>")<EOL>sponsor_map = []<EOL>sponsor = bill.get('<STR_LIT>', None)<EOL>if sponsor:<EOL><INDENT>sponsor_map.append(sponsor.get('<STR_LIT:type>'))<EOL>sponsor_map.append(sponsor.get('<STR_LIT>'))<EOL>sponsor_map.append(bill.get('<STR_LIT>'))<EOL>sponsor_map.append(sponsor.get('<STR_LIT>'))<EOL>sponsor_map.append(sponsor.get('<STR_LIT:state>'))<EOL><DEDENT>logger.debug("<STR_LIT>")<EOL>return sponsor_map if sponsor_map else None<EOL>
Return a list of the fields we need to map a sponser to a bill