def normalize_prefetch_lookups(lookups, prefix=None):
    ret = []
    for lookup in lookups:
        if not isinstance(lookup, Prefetch):
            lookup = Prefetch(lookup)
        if prefix:
            lookup.add_prefix(prefix)
        ret.append(lookup)
    return ret
Helper function that normalize lookups into Prefetch objects.
dataset/ETHPy150Open django/django/django/db/models/query.py/normalize_prefetch_lookups