code: def test_compat_tensorboard(relay_server, wandb_init):
      # TODO(jhr): does not work with --flake-finder
      # TODO: we currently don't unpatch tensorflow so this is the only test that can do it...
      with relay_server() as relay:
          run = wandb_init(sync_tensorboard=True)
          run_id = run.id
          with tf.compat.v1.Session() as sess:
              initializer = tf.compat.v1.truncated_normal_initializer(
                  mean=0,
                  stddev=1,
              )
              x_scalar = tf.compat.v1.get_variable(
                  "x_scalar",
                  shape=[],
                  initializer=initializer,
              )
              x_summary = tf.compat.v1.summary.scalar(
                  "x_scalar",
                  x_scalar,
              )
              init = tf.compat.v1.global_variables_initializer()
              writer = tf.compat.v1.summary.FileWriter(
                  os.path.join(".", "summary"), sess.graph
              )
              for step in range(10):
                  sess.run(init)
                  summary = sess.run(x_summary)
                  writer.add_summary(summary, step)
              writer.close()
          run.finish()
  
      history = relay.context.get_run_history(
          run_id, include_private=True
      )
      assert history["_step"].values[-1] == 9
      assert history["global_step"].values[-1] == 9
  
      assert (
          "\x1b[34m\x1b[1mwandb\x1b[0m: \x1b[33mWARNING\x1b[0m Step cannot be set when using"
          " syncing with tensorboard. Please log your step values as a metric such as 'global_step'"
      ) not in term.PRINTED_MESSAGES
      wandb.tensorboard.unpatch()
  
file_path: wandb/tests/pytest_tests/system_tests/test_core/test_wandb_tensorflow.py
imports: import os
  import platform
  import pytest
  import tensorboard.summary.v1
  import tensorflow
  import wandb
  from tensorboard.plugins.pr_curve import summary
  from wandb.errors import term
label_desc: Use image node_id 1 for calling a global function with example usage: test_compat_tensorboard(relay_server, wandb_init) without return types