code: def register_model(mar_file_path, model_store, torchserve):
      shutil.copy(mar_file_path, model_store)
  
      file_name = os.path.split(mar_file_path)[-1]
  
      model_name = os.path.splitext(file_name)[0]
  
      test_utils.reg_resp = test_utils.register_model(
          model_name, file_name
      )
  
      yield model_name
  
      test_utils.unregister_model(model_name)
  
imports: import importlib
  import json
  import os
  import shutil
  import sys
  import time
  from argparse import Namespace
  from pathlib import Path
  import pytest
  import requests
  import test_utils
  import torch
  from model_archiver import ModelArchiverConfig
  from test_utils import REPO_ROOT
  from ts.torch_handler.unit_tests.test_utils.mock_context import MockContext
label_desc: Use image node_id 6 for calling a global function with example usage: register_model(mar_file_path, model_store, torchserve) without return types