code: def test_to_relpath(path, expected):
      assert (
          Config._to_relpath(os.path.join(".", "config"), path)
          == expected
      )
  
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 1 for calling a global function with example usage: test_to_relpath(path, expected) without return types