code: def test_test_one_batch(
      monkeypatch: monkeypatch.MonkeyPatch, tmp_path: pathlib.Path
  ) -> None:
      def mock_get_tensorboard_path(
          dummy: typing.Dict[str, typing.Any]
      ) -> pathlib.Path:
          return tmp_path.joinpath("tensorboard")
  
      monkeypatch.setattr(
          pytorch.PyTorchTrialContext,
          "get_tensorboard_path",
          mock_get_tensorboard_path,
      )
  
      with det._local_execution_manager(
          pathlib.Path(pytorch_onevar_model.__file__).parent
      ):
          experimental.test_one_batch(
              trial_class=pytorch_onevar_model.OneVarTrial,
              config={
                  "hyperparameters": {
                      "hidden_size": 2,
                      "learning_rate": 0.5,
                      "global_batch_size": 4,
                      "dataloader_type": "determined",
                  },
                  "searcher": {"metric": "loss"},
              },
          )
  
file_path: determined/harness/tests/experiment/test_local.py
imports: import pathlib
  import typing
  import pytest
  from _pytest import monkeypatch
  import determined
  from determined import experimental, keras, pytorch
  from tests.experiment.fixtures import pytorch_onevar_model
label_desc: Use image node_id 1 for calling a global function with example usage: test_test_one_batch(monkeypatch, tmp_path) and returns: tmp_path