def METHOD_NAME(port_media_dict):
    for port in port_media_dict:
        if not check_valid_port(port):
            print("Invalid port name " + port)
            return False
        if not check_media_dict(port_media_dict[port]):
            return False
    return True