code: def test_sync_file(wandb_init):
      run = wandb_init(mode="offline")
      assert run._settings.sync_file == os.path.realpath(
          os.path.join(
              ".", "wandb", "latest-run", f"run-{run.id}.wandb"
          )
      )
      run.finish()
  
file_path: wandb/tests/pytest_tests/system_tests/test_core/test_wandb_settings.py
imports: import os
  import platform
  from unittest import mock
  import git
  import pytest
  from wandb import env
  from wandb.sdk import wandb_settings
label_desc: Use image node_id 2 for calling a global function with example usage: test_sync_file(wandb_init) without return types