def METHOD_NAME(data):
    did_pass = True
    print('targets', end=' ')
    p = 'targets' in data and type(data['targets']) is list
    if p:
        targets = data['targets']
        for t in targets:
            p = 'name' in t and 'part_number' in t
            if not p:
                break
    if p:
        print("PASSED")
    else:
        did_pass = False
        print("FAILED")
    return did_pass