code: def test_beta_sync_two_runs(user, test_settings, runner):
      _ = pytest.importorskip("wandb_core")
      os.makedirs(".wandb", exist_ok=True)
      run = wandb.init(settings=test_settings({"mode": "offline"}))
      run.log(dict(a=1))
      run.finish()
  
      run2 = wandb.init(settings=test_settings({"mode": "offline"}))
      run2.log(dict(a=1))
      run2.finish()
  
      result = runner.invoke(cli.beta, ["sync", ".wandb"])
      print(result.output)
      assert result.exit_code == 0
      assert f"{run.id}" in result.output
      assert f"{run2.id}" in result.output
  
file_path: wandb/tests/pytest_tests/system_tests/test_core/test_offline_sync.py
imports: import os
  import unittest.mock
  import pytest
  import wandb
  from wandb.cli import cli
  from wandb.sdk.lib.runid import generate_id
label_desc: Use image node_id 3 for calling a global function with example usage: test_beta_sync_two_runs(user, test_settings, runner) without return types