code: def base_model_dir(tmp_path_factory):
      model_dir = tmp_path_factory.mktemp("base_model_dir")
  
      shutil.copyfile(
          Path(__file__).parents[0] / "models" / "base_model.py",
          model_dir / "model.py",
      )
  
      save_pt_file(model_dir.joinpath("model.pt").as_posix())
  
      sys.path.append(model_dir.as_posix())
      yield model_dir
      sys.path.pop()
  
file_path: serve/ts/torch_handler/unit_tests/conftest.py
imports: import shutil
  import sys
  from pathlib import Path
  import pytest
  from .models.base_model import save_pt_file
  from .test_utils.mock_context import MockContext
label_desc: Use image node_id 1 for calling a global function with example usage: base_model_dir(tmp_path_factory) without return types