code: def test_archive_model_artifacts(self):
      assert len(glob.glob(MODEL_FILE)) == 1
      assert len(glob.glob(YAML_CONFIG_STR)) == 1
      assert len(glob.glob(YAML_CONFIG_DICT)) == 1
      subprocess.run(
          f"cd {TEST_DATA_DIR} && python model.py",
          shell=True,
          check=True,
      )
      subprocess.run(
          f"mkdir -p {MODEL_STORE_DIR}", shell=True, check=True
      )
  
      # register 2 models, one with the backend as str config, the other with the kwargs as dict config
      subprocess.run(
          f"torch-model-archiver --model-name {MODEL_NAME}_str --version 1.0 --model-file {MODEL_FILE} --serialized-file {SERIALIZED_FILE} --config-file {YAML_CONFIG_STR} --export-path {MODEL_STORE_DIR} --handler {HANDLER_FILE} -f",
          shell=True,
          check=True,
      )
      subprocess.run(
          f"torch-model-archiver --model-name {MODEL_NAME}_dict --version 1.0 --model-file {MODEL_FILE} --serialized-file {SERIALIZED_FILE} --config-file {YAML_CONFIG_DICT} --export-path {MODEL_STORE_DIR} --handler {HANDLER_FILE} -f",
          shell=True,
          check=True,
      )
      assert len(glob.glob(SERIALIZED_FILE)) == 1
      assert (
          len(
              glob.glob(
                  os.path.join(MODEL_STORE_DIR, f"{MODEL_NAME}_str.mar")
              )
          )
          == 1
      )
      assert (
          len(
              glob.glob(
                  os.path.join(
                      MODEL_STORE_DIR, f"{MODEL_NAME}_dict.mar"
                  )
              )
          )
          == 1
      )
  
file_path: serve/test/pytest/test_torch_compile.py
imports: import glob
  import json
  import os
  import platform
  import subprocess
  import time
  from pathlib import Path
  import pytest
  import torch
  from pkg_resources import packaging
label_desc: Use image node_id 2 for calling the TestTorchCompile obj's underlying member method code with example usage: obj.test_archive_model_artifacts() without return types