code: def remove_user_pass_from_url(url):
      # remove user / password, if we have it embedded in the git repo
      url = str(url)
      # noinspection PyBroadException
      try:
          url = furl(url).remove(username=True, password=True).tostr()
      except ValueError:
          # check if for any reason we have two @
          # (e.g. ssh://user@abc.com@domain.com/path or ssh://user@abc.com:pass@domain.com/path)
          if len(url.split("@")) >= 3:
              # noinspection PyBroadException
              try:
                  url = (
                      furl(url.replace("@", "_", 1))
                      .remove(username=True, password=True)
                      .tostr()
                  )
              except Exception:
                  pass
      except Exception:
          pass
      return url
  
imports: import os
  from subprocess import check_output
  from furl import furl
label_desc: Use image node_id 2 for calling a global function with example usage: remove_user_pass_from_url(url) and returns: url