code: def test_config_list(tmp_dir, dvc, capsys):
      (tmp_dir / ".dvc" / "config").write_text(
          textwrap.dedent(
              """\
          [core]
              no_scm = true
              analytics = False
              remote = myremote
          ['remote "myremote"']
              url = s3://bucket/path
              region = us-east-2
          """
          )
      )
      (tmp_dir / ".dvc" / "config.local").write_text(
          textwrap.dedent(
              """\
          ['remote "myremote"']
              profile = iterative
              access_key_id = abcde
              secret_access_key = 123456
          ['remote "other"']
              url = gs://bucket/path
          """
          )
      )
  
      assert main(["config", "--list"]) == 0
  
      out, _ = capsys.readouterr()
      assert "remote.myremote.url=s3://bucket/path" in out
      assert "remote.myremote.region=us-east-2" in out
      assert "remote.myremote.profile=iterative" in out
      assert "remote.myremote.access_key_id=abcde" in out
      assert "remote.myremote.secret_access_key=123456" in out
      assert "remote.other.url=gs://bucket/path" in out
      assert "core.analytics=False" in out
      assert "core.no_scm=true" in out
      assert "core.remote=myremote" in out
  
imports: import os
  import textwrap
  import pytest
  from dvc.cli import main
  from dvc.config import Config, ConfigError
label_desc: Use image node_id 6 for calling a global function with example usage: test_config_list(tmp_dir, dvc, capsys) without return types