code: def torchserve(model_store, work_dir):
      test_utils.torchserve_cleanup()
  
      config_properties_file = work_dir / "config.properties"
      config_properties_file.write_text(CONFIG_PROPERTIES)
  
      pipe = test_utils.start_torchserve(
          model_store=model_store,
          no_config_snapshots=True,
          gen_mar=False,
          snapshot_file=config_properties_file.as_posix(),
      )
  
      yield pipe
  
      test_utils.torchserve_cleanup()
  
file_path: serve/test/pytest/test_auto_recover.py
imports: import json
  import platform
  import shutil
  from pathlib import Path
  from unittest.mock import patch
  import pytest
  import requests
  import test_utils
  from model_archiver import ModelArchiverConfig
label_desc: Use image node_id 3 for calling a global function with example usage: torchserve(model_store, work_dir) without return types