code: def test_sync_tensorboard(
      runner,
      relay_server,
      user,
      copy_asset,
      tb_file_name,
      history_length,
  ):
      with relay_server() as relay, runner.isolated_filesystem():
          project_name = "test_sync_tensorboard"
          run = wandb.init(project=project_name)
          run.finish()
  
          copy_asset(tb_file_name)
  
          result = runner.invoke(
              cli.sync,
              [".", f"--id={run.id}", f"--project={project_name}"],
          )
  
          assert result.exit_code == 0
          assert "Found 1 tfevent files" in result.output
          history = relay.context.get_run_history(run.id)
          assert len(history) == history_length
  
          # Check the no sync tensorboard flag
          result = runner.invoke(
              cli.sync, [".", "--no-sync-tensorboard"]
          )
          assert (
              "Skipping directory: {}\n".format(os.path.abspath("."))
              in result.output
          )
          assert tb_file_name in os.listdir(".")
  
file_path: wandb/tests/pytest_tests/system_tests/test_core/test_cli_full.py
imports: import netrc
  import os
  import traceback
  from unittest import mock
  import pytest
  import wandb
  from wandb.cli import cli
label_desc: Use image node_id 7 for calling a global function with example usage: test_sync_tensorboard(runner, relay_server, user, copy_asset, tb_file_name, history_length) without return types