def _get_link_pages(page, per_page, count, page_url):<EOL>
current_page = _page_arg(page)<EOL>links = {}<EOL>end = page * per_page<EOL>if page > <NUM_LIT:1>:<EOL><INDENT>links['<STR_LIT>'] = page_url.replace(current_page, _page_arg(page - <NUM_LIT:1>))<EOL><DEDENT>if end < count:<EOL><INDENT>links['<STR_LIT>'] = page_url.replace(current_page, _page_arg(page + <NUM_LIT:1>))<EOL><DEDENT>if per_page < count:<EOL><INDENT>links['<STR_LIT>'] = page_url.replace(current_page, _page_arg(<NUM_LIT:1>))<EOL>links['<STR_LIT>'] = page_url.replace(current_page, _page_arg((count + per_page - <NUM_LIT:1>) // per_page))<EOL><DEDENT>return links<EOL>
Create link header for page metadata.

    :param page: current page
    :param per_page: page limit
    :param count: count of all resources
    :param page_url: url for resources
    :return: dictionary with name of the link as key and its url as value