code: def test_load_relative_paths(dvc, field, remote_url):
      # set field to test
      with dvc.config.edit() as conf:
          conf["remote"]["test"] = {
              "url": remote_url,
              field: "file.txt",
          }
  
      # check if written paths are correct
      dvc_dir = dvc.config.dvc_dir
      assert dvc.config["remote"]["test"][field] == os.path.abspath(
          os.path.join(dvc_dir, "..", "file.txt")
      )
  
      # load config and check that it contains what we expect
      # (relative paths are evaluated correctly)
      cfg = Config(dvc_dir)
      assert cfg["remote"]["test"][field] == os.path.abspath(
          os.path.join(dvc_dir, "..", "file.txt")
      )
  
imports: import os
  import textwrap
  import pytest
  from dvc.cli import main
  from dvc.config import Config, ConfigError
label_desc: Use image node_id 12 for calling a global function with example usage: test_load_relative_paths(dvc, field, remote_url) without return types