code: def test_show_default(dvc, capsys):
      assert main(["remote", "add", "foo", "s3://bucket/name"]) == 0
      assert main(["remote", "default", "foo"]) == 0
      assert main(["remote", "default"]) == 0
      out, _ = capsys.readouterr()
      assert out == "foo\n"
  
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 8 for calling a global function with example usage: test_show_default(dvc, capsys) without return types