def METHOD_NAME(element_uri, parent_uri, parents, uris):
    if element_uri in parents and parents[element_uri]:
        # parent was explicitely selected
        return parents[element_uri]
    elif parent_uri in uris:
        # parent uri was changed during the import
        return uris[parent_uri]
    else:
        # needs to be False, to use parent uri in file
        return False