def legacy_backends(backends):
    return filter_backends(backends, (lambda name, backend: (name in LEGACY_NAMES)))
def legacy_backends(backends):
    return filter_backends(backends, (lambda name, backend: (name in LEGACY_NAMES)))