code: def create_mar_file(work_dir, model_archiver, model_name):
      mar_file_path = Path(work_dir).joinpath(model_name + ".mar")
  
      config = ModelArchiverConfig(
          model_name=model_name,
          version="1.0",
          model_file=CURR_FILE_PATH.joinpath(
              "test_data", "streaming", "fake_streaming_model.py"
          ).as_posix(),
          handler=CURR_FILE_PATH.joinpath(
              "test_data", "streaming", "stream_handler.py"
          ).as_posix(),
          serialized_file=None,
          export_path=work_dir,
          requirements_file=None,
          runtime="python",
          force=False,
          archive_format="default",
          config_file=CURR_FILE_PATH.joinpath(
              "test_data", "streaming", "model_config.yaml"
          ).as_posix(),
          extra_files=None,
      )
  
      with patch(
          "archiver.ArgParser.export_model_args_parser",
          return_value=config,
      ):
          # Using ZIP_STORED instead of ZIP_DEFLATED reduces test runtime from 54 secs to 10 secs
          with patch(
              "model_archiver.model_packaging_utils.zipfile.ZipFile",
              lambda x, y, _: ZipFile(x, y, ZIP_STORED),
          ):
              model_archiver.generate_model_archive()
  
              assert mar_file_path.exists()
  
              yield mar_file_path.as_posix()
  
file_path: serve/test/pytest/test_continuous_batching.py
imports: import json
  import shutil
  from pathlib import Path
  from queue import Empty
  from unittest.mock import patch
  from zipfile import ZIP_STORED, ZipFile
  import pytest
  import requests
  import test_utils
  import torch
  from model_archiver import ModelArchiverConfig
  from test_data.streaming.stream_handler import StreamingHandler
  from ts.torch_handler.unit_tests.test_utils.mock_context import MockContext
label_desc: Use image node_id 3 for calling a global function with example usage: create_mar_file(work_dir, model_archiver, model_name) without return types