code: def test_regression():
      print("## Started regression tests")
      # generate_densenet_test_model_archive $MODEL_STORE
      model_creation_exit_code = generate_densenet_test_model_archive()
      py_test_exit_code = run_pytest()
  
      # If any one of the steps fail, exit with error
      if model_creation_exit_code != 0:
          sys.exit("## Densenet mar creation failed !")
      if py_test_exit_code != 0:
          sys.exit("## TorchServe Regression Pytests Failed")
  
file_path: serve/ts_scripts/regression_utils.py
imports: import os
  import sys
  import tempfile
  import urllib.request
  from ts_scripts.shell_utils import rm_file
label_desc: Use image node_id 3 for calling a global function with example usage: test_regression() without return types