code: def test_get_cloud_fs(tmp_dir, dvc):
      tmp_dir.add_remote(
          name="base", url="s3://bucket/path", default=False
      )
      tmp_dir.add_remote(
          name="first", url="remote://base/first", default=False
      )
      tmp_dir.add_remote(
          name="second", url="remote://first/second", default=False
      )
  
      base = "bucket/path"
      first = f"{base}/first"
      second = f"{first}/second"
  
      _, _, path = get_cloud_fs(dvc.config, name="base")
      assert path == base
      _, _, path = get_cloud_fs(dvc.config, name="first")
      assert path == first
      _, _, path = get_cloud_fs(dvc.config, name="second")
      assert path == second
  
imports: import pytest
  from dvc.config import ConfigError
  from dvc.fs import get_cloud_fs
label_desc: Use image node_id 1 for calling a global function with example usage: test_get_cloud_fs(tmp_dir, dvc) without return types