code: def arctic_paginate(parser, token):
      
      bits = token.split_contents()
      if len(bits) < 2:
          raise TemplateSyntaxError(
              "'%s' takes at least one argument"
              " (Page object reference)" % bits[0]
          )
      page = parser.compile_filter(bits[1])
      kwargs = {}
      bits = bits[2:]
  
      kwarg_re = re.compile(r"(\w+)=(.+)")
  
      if len(bits):
          for bit in bits:
              match = kwarg_re.match(bit)
              if not match:
                  raise TemplateSyntaxError(
                      "Malformed arguments to bootstrap_pagination paginate tag"
                  )
              name, value = match.groups()
              kwargs[name] = parser.compile_filter(value)
  
      return PaginationNode(page, kwargs)
docs: Renders a Page object with pagination bar.
      Example::
          {% arctic_paginate page_obj paginator=page_obj.paginator range=10 %}
      Named Parameters::
          range - The size of the pagination bar (ie, if set to 10 then, at most,
                  10 page numbers will display at any given time) Defaults to
                  None, which shows all pages.
          show_first_last - Accepts "true" or "false". Determines whether or not
                            to show the first and last page links. Defaults to
                            "false"