code: def register_model(mar_file_path, model_store, params, torchserve):
      shutil.copy(mar_file_path, model_store)
  
      file_name = Path(mar_file_path).name
  
      model_name = Path(file_name).stem
  
      params = params + (
          ("model_name", model_name),
          ("url", file_name),
      )
  
      test_utils.reg_resp = test_utils.register_model_with_params(
          params
      )
      return model_name
  
file_path: serve/test/pytest/test_model_config.py
imports: import shutil
  from pathlib import Path
  from unittest.mock import patch
  import pytest
  import test_utils
  from model_archiver import ModelArchiverConfig
label_desc: Use image node_id 4 for calling a global function with example usage: register_model(mar_file_path, model_store, params, torchserve) and returns: model_name