code: def jr_split(s):
      
      p = six.moves.urllib.parse.urlparse(s)
      return (
          normalize_url(six.moves.urllib.parse.urlunparse(p[:5]+('',))),
          '#'+p.fragment if p.fragment else '#'
      )
docs: split a json-reference into (url, json-pointer)