code: def prepare_model_dir(test_name, integ_tests):
      integ_tests = list(
          filter(lambda t: t["name"] == test_name, integ_tests)
      )
      assert len(integ_tests) == 1
      test = integ_tests[0]
  
      keys = (
          "model-file",
          "serialized-file",
          "handler",
          "extra-files",
          "config-file",
      )
      artifact_files = {k.replace("-", "_"): test[k] for k in keys}
  
      model_path = ModelExportUtils.copy_artifacts(
          test["model-name"], **artifact_files
      )
  
      manifest = create_manifest_from_test_json(test)
      return manifest, model_path
  
file_path: serve/model-archiver/model_archiver/tests/unit_tests/test_model_packaging_utils.py
imports: import json
  import platform
  from collections import namedtuple
  from pathlib import Path
  import pytest
  from model_archiver import ModelArchiverConfig
  from model_archiver.manifest_components.manifest import RuntimeType
  from model_archiver.model_archiver_error import ModelArchiverError
  from model_archiver.model_packaging_utils import ModelExportUtils
label_desc: Use image node_id 3 for calling a global function with example usage: prepare_model_dir(test_name, integ_tests) and returns: manifest,  model_path