code: def _build_server_url(server_host, server_path) -> str:
          
          server_url = urljoin(server_host, server_path)
          if server_url[-1] == '/':
              return server_url
          return '{}/'.format(server_url)
docs: Build the server url making sure it ends in a trailing slash.