code: def test_save_relative_path(mock_run, parse_records, record_q):
      run = mock_run()
      root = tempfile.gettempdir()
      test_path = os.path.join(root, "tmp", "test.txt")
      print("DAMN", os.path.dirname(test_path))
      filesystem.mkdir_exists_ok(os.path.dirname(test_path))
      with open(test_path, "w") as f:
          f.write("something")
      run.save(test_path, base_path=root, policy="now")
      assert os.path.exists(os.path.join(run.dir, test_path))
      parsed = parse_records(record_q)
      file_record = parsed.files[0].files[0]
      assert file_record.path == os.path.relpath(test_path, root)
      assert file_record.policy == 0
  
file_path: wandb/tests/pytest_tests/unit_tests/test_wandb_save.py
imports: import os
  import tempfile
  import pytest
  from wandb.sdk.lib import filesystem
label_desc: Use image node_id 4 for calling a global function with example usage: test_save_relative_path(mock_run, parse_records, record_q) without return types