<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def extract_subjects(bill):
 """ Return a list subject for legislation. """

    logger.debug("Extracting Subjects")
    subject_map = []
    subjects = bill.get('subjects', [])
    bill_id = bill.get('bill_id', None)
    bill_type = bill.get('bill_type', None)

    for sub in subjects:
        subject_map.append((bill_id, bill_type, sub))

    logger.debug("End Extractioning Subjects")

    return subject_map