def normalize_page_number(page_number, page_range):
    try:
        return page_range[page_number]
    except IndexError:
        return page_range[0]
get os metadata ui converter.
dataset/ETHPy150Open frankban/django-endless-pagination/endless_pagination/utils.py/normalize_page_number--crossover with--dataset/ETHPy150Open openstack/compass-core/compass/db/api/metadata_holder.py/_get_os_metadata_ui_converter