code: def test_referencing_other_remotes(dvc):
      assert main(["remote", "add", "foo", "ssh://localhost/"]) == 0
      assert (
          main(["remote", "add", "bar", "remote://foo/dvc-storage"])
          == 0
      )
  
      config = configobj.ConfigObj(dvc.config.files["repo"])
      assert config['remote "bar"']["url"] == "remote://foo/dvc-storage"
  
imports: import errno
  import itertools
  import os
  import stat
  import configobj
  import pytest
  from dvc.cli import main
  from dvc.config import Config
  from dvc.exceptions import DownloadError, UploadError
  from dvc.utils.fs import remove
label_desc: Use image node_id 4 for calling a global function with example usage: test_referencing_other_remotes(dvc) without return types