<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def grab_names_from_emails(email_list):
 """Return a dictionary mapping names to email addresses. Only gives a response if the email is found in the staff API/JSON. Expects an API of the format = [ { 'email': 'foo@bar.net', 'fullName': 'Frank Oo' }, ] """

    all_staff = STAFF_LIST

    emails_names = {}

    for email in email_list:
        for person in all_staff:
            if email == person['email'] and email not in emails_names:
                emails_names[email] = person['fullName']
                # print emails_names[email]

    for email in email_list:
        matched = False
        for assignment in emails_names:
            if email == assignment:
                matched = True
        if not matched:
            emails_names[email] = email

    return emails_names