code: def normalize_url(node):
      
      if not node:
          node = DEFAULT_NODE
      elif '://' not in node:
          node = '//{}'.format(node)
      parts = urlparse(node, scheme='http', allow_fragments=False)
      port = parts.port if parts.port else _get_default_port(parts.scheme)
      netloc = '{}:{}'.format(parts.hostname, port)
      return urlunparse((parts.scheme, netloc, parts.path, '', '', ''))
docs: Normalizes the given node url