docs: def url_normolize(url: str):
      """
      >>> url_normolize('//api/1/../../status')
      '/status'
      >>> url_normolize('//api/1/../../status/')
      '/status/'
      >>> url_normolize('/api/1/../../status/')
      '/status/'
      >>> url_normolize('///api/1/../../status/')
      '/status/'
      """
      u = parse.urljoin('///{}/'.format(url), '.')
      u = re.sub(r'/+', '/', u)
      return u if url.endswith('/') else u[:-1]