code: def test_disable_tb_logging(self, tmp_path: pathlib.Path) -> None:
      tensorboard_path = tmp_path.joinpath("tensorboard")
  
      (
          trial,
          trial_controller,
      ) = pytorch_utils.create_trial_and_trial_controller(
          trial_class=pytorch_onevar_model.OneVarTrial,
          hparams=self.hparams,
          trial_seed=self.trial_seed,
          tensorboard_path=tensorboard_path,
      )
      trial.context.set_enable_tensorboard_logging(False)
      trial_controller._upload_tb_files = mock.MagicMock()
      trial_controller.run()
  
      assert trial_controller._upload_tb_files.call_count == 0
  
imports: import contextlib
  import importlib
  import io
  import os
  import pathlib
  import sys
  import typing
  from unittest import mock
  import numpy
  import pytest
  import torch
  from _pytest import monkeypatch
  from torch.distributed import launcher
  import determined
  from determined import pytorch
  from tests.experiment import pytorch_utils, utils
  from tests.experiment.fixtures import pytorch_onevar_model
label_desc: Use image node_id 23 for calling the TestPyTorchTrial obj's underlying member method code with example usage: obj.test_disable_tb_logging(tmp_path) without return types