code: def strip_ssh_from_git_uri(uri):
      # type: (S) -> S
      
      if isinstance(uri, six.string_types):
          if "git+ssh://" in uri:
              parsed = urlparse(uri)
              # split the path on the first separating / so we can put the first segment
              # into the 'netloc' section with a : separator
              path_part, _, path = parsed.path.lstrip("/").partition("/")
              path = "/{0}".format(path)
              parsed = parsed._replace(
                  netloc="{0}:{1}".format(parsed.netloc, path_part), path=path
              )
              uri = urlunparse(parsed).replace("git+ssh://", "git+", 1)
      return uri
docs: Return git+ssh:// formatted URI to git+git@ format