code: def test_sync_with_tensorboard(
      relay_server, runner, copy_asset, user
  ):
      with unittest.mock.patch.dict(
          "os.environ", {"WANDB_MODE": "offline"}
      ):
          tf_event = copy_asset("events.out.tfevents.1585769947.cvp")
          run_id = generate_id()
          with relay_server() as relay:
              result = runner.invoke(
                  cli.sync, [tf_event, f"--id={run_id}"]
              )
      assert result.exit_code == 0
      history = relay.context.get_run_history(
          run_id, include_private=True
      )
      assert history["_runtime"][0] == 0
      assert all(history["_runtime"][1:])
  
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 1 for calling a global function with example usage: test_sync_with_tensorboard(relay_server, runner, copy_asset, user) without return types