code: def test_tb_watcher_logdir_not_exists(
      mocked_run_disable_job_creation, tbwatcher_util, capsys
  ):
      # TODO: check caplog for right error text
      pytest.importorskip("tensorboard.summary.v1")
      import tensorboard.summary.v1 as tb_summary
  
      log_dir = os.path.join(
          mocked_run_disable_job_creation.dir, "test_tb_dne_dir"
      )
  
      def write_fun():
          pass
  
      _ = tbwatcher_util(
          write_function=write_fun,
          logdir=log_dir,
          save=False,
          root_dir=mocked_run_disable_job_creation.dir,
      )
      _, err = capsys.readouterr()
      assert err == ""
  
imports: import os
  import platform
  import pytest
label_desc: Use image node_id 2 for calling a global function with example usage: test_tb_watcher_logdir_not_exists(mocked_run_disable_job_creation, tbwatcher_util, capsys) without return types