def lazy_related_operation(function, model, *related_models, **kwargs):
    models = [model] + [resolve_relation(model, rel) for rel in related_models]
    model_keys = (make_model_tuple(m) for m in models)
    apps = model._meta.apps
    return apps.lazy_model_operation(partial(function, **kwargs), *model_keys)
Test if the address is reserved for link-local.
dataset/ETHPy150Open django/django/django/db/models/fields/related.py/lazy_related_operation--crossover with--dataset/ETHPy150Open anzev/hedwig/build/pip/pip/_vendor/ipaddress.py/_BaseNetwork.is_link_local