code: def register_model(mar_file_path, model_store, torchserve):
      """
      Register the model in torchserve
      """
      shutil.copy(mar_file_path, model_store)
  
      file_name = Path(mar_file_path).name
  
      model_name = Path(file_name).stem
  
      test_utils.reg_resp = test_utils.register_model(
          model_name, file_name
      )
  
      yield model_name
  
      test_utils.unregister_model(model_name)
  
file_path: serve/test/pytest/test_example_torchrec_dlrm.py
imports: import json
  import shutil
  import sys
  from pathlib import Path
  import pytest
  import requests
  import test_utils
  import torch
  from model_archiver import ModelArchiverConfig
  from ts.torch_handler.unit_tests.test_utils.mock_context import MockContext
label_desc: Use image node_id 5 for calling a global function with example usage: register_model(mar_file_path, model_store, torchserve) without return types