code: def create_mar_file(
      work_dir, session_mocker, jit_file_path, model_archiver
  ):
      """
      Create mar file and return file path.
      """
      model_name = "scriptable_tokenizer_untrained"
  
      mar_file_path = os.path.join(work_dir, model_name + ".mar")
  
      config = ModelArchiverConfig(
          model_name=model_name,
          version="1.0",
          serialized_file=jit_file_path,
          model_file=None,
          handler=os.path.join(EXAMPLE_ROOT_DIR, "handler.py"),
          extra_files=os.path.join(
              EXAMPLE_ROOT_DIR, "index_to_name.json"
          ),
          export_path=work_dir,
          requirements_file=None,
          runtime="python",
          force=False,
          archive_format="default",
          config_file=None,
      )
  
      session_mocker.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
      from zipfile import ZIP_STORED, ZipFile
  
      session_mocker.patch(
          "model_archiver.model_packaging_utils.zipfile.ZipFile",
          lambda x, y, _: ZipFile(x, y, ZIP_STORED),
      )
  
      model_archiver.generate_model_archive()
  
      assert os.path.exists(mar_file_path)
  
      yield mar_file_path
  
      # Clean up files
      try:
          os.remove(mar_file_path)
      except OSError:
          pass
  
imports: import importlib
  import json
  import os
  import shutil
  import sys
  import time
  from argparse import Namespace
  from pathlib import Path
  import pytest
  import requests
  import test_utils
  import torch
  from model_archiver import ModelArchiverConfig
  from test_utils import REPO_ROOT
  from ts.torch_handler.unit_tests.test_utils.mock_context import MockContext
label_desc: Use image node_id 5 for calling a global function with example usage: create_mar_file(work_dir, session_mocker, jit_file_path, model_archiver) without return types