code: def test_get_fs(tmp_dir, scm):
      tmp_dir.scm_gen("foo", "foo", commit="add foo")
  
      fs = scm.get_fs("master")
      config = Config.from_cwd(fs=fs)
  
      assert config.fs == fs
      assert config.wfs != fs
      assert isinstance(config.wfs, LocalFileSystem)
  
      assert config._get_fs("repo") == fs
      assert config._get_fs("local") == config.wfs
      assert config._get_fs("global") == config.wfs
      assert config._get_fs("system") == config.wfs
  
file_path: dvc/tests/unit/test_config.py
imports: import logging
  import os
  import textwrap
  import pytest
  from dvc.config import Config, ConfigError
  from dvc.fs import LocalFileSystem
label_desc: Use image node_id 4 for calling a global function with example usage: test_get_fs(tmp_dir, scm) without return types