def METHOD_NAME(entity):
    """
    Search for NGSIv1-style location, i.e. a "location" metadata in some of the attributes of the given entity.
    FIXME: currently metadata location doesn't appear in NGSIv2 results. This method could be pretty useless
    until https://github.com/telefonicaid/fiware-orion/issues/3122 gets solved, but we leave here for the future
    in any case.
    :param entity: the entity in which search location
    :return: the attribute which holds location, 'None' if no one was found
    """
    for field in entity:
        if field == 'id' or field == 'type':
            continue
        for m in entity[field]['metadata']:
            if m == 'location':
                return field
    return None