def get_faculty_sections(faculty, section_teachers):
    result = defaultdict(set)
    missing_emails = set()
    for (key, value) in section_teachers.items():
        section_id = key
        faculty_id = value
        if (faculty_id not in faculty):
            missing_emails.add(faculty_id)
            continue
        result[faculty[faculty_id]].add(section_id)
    if missing_emails:
        utils.logger.warning(f'Missing emails for {missing_emails}')
    return result
def get_faculty_sections(faculty, section_teachers):
    result = defaultdict(set)
    missing_emails = set()
    for (key, value) in section_teachers.items():
        section_id = key
        faculty_id = value
        if (faculty_id not in faculty):
            missing_emails.add(faculty_id)
            continue
        result[faculty[faculty_id]].add(section_id)
    if missing_emails:
        utils.logger.warning(f'Missing emails for {missing_emails}')
    return result