code: def test_get_cloud_fs_validate(tmp_dir, dvc):
      tmp_dir.add_remote(
          name="base", url="ssh://example.com/path", default=False
      )
      tmp_dir.add_remote(
          name="first",
          config={"url": "remote://base/first", "type": "symlink"},
          default=False,
      )
      tmp_dir.add_remote(
          name="second",
          config={
              "url": "remote://first/second",
              "oss_key_id": "mykey",
          },
          default=False,
      )
  
      assert (
          get_cloud_fs(dvc.config, name="base")[1]["host"]
          == "example.com"
      )
      assert (
          get_cloud_fs(dvc.config, name="first")[1]["host"]
          == "example.com"
      )
      assert get_cloud_fs(dvc.config, name="first")[1]["type"] == [
          "symlink"
      ]
  
      with pytest.raises(ConfigError):
          get_cloud_fs(dvc.config, name="second")
  
imports: import pytest
  from dvc.config import ConfigError
  from dvc.fs import get_cloud_fs
label_desc: Use image node_id 2 for calling a global function with example usage: test_get_cloud_fs_validate(tmp_dir, dvc) without return types