code: def _join_url_dir(cls, url, *args):
          
  
          for path in args:
              url = url.rstrip('/') + '/'
              url = urljoin(url, path.lstrip('/'))
  
          return url
docs: Join a URL with multiple directories