code: def model_archiver_command_builder(
      model_name=None,
      version=None,
      model_file=None,
      serialized_file=None,
      handler=None,
      extra_files=None,
      force=False,
      config_file=None,
      runtime=None,
      archive_format=None,
      requirements_file=None,
      export_path=None,
  ):
      cmd = "torch-model-archiver"
  
      if model_name:
          cmd += " --model-name {0}".format(model_name)
  
      if version:
          cmd += " --version {0}".format(version)
  
      if model_file:
          cmd += " --model-file {0}".format(model_file)
  
      if serialized_file:
          cmd += " --serialized-file {0}".format(serialized_file)
  
      if handler:
          cmd += " --handler {0}".format(handler)
  
      if extra_files:
          cmd += " --extra-files {0}".format(extra_files)
  
      if runtime:
          cmd += " --runtime {0}".format(runtime)
  
      if archive_format:
          cmd += " --archive-format {0}".format(archive_format)
  
      if requirements_file:
          cmd += " --requirements-file {0}".format(requirements_file)
  
      if config_file:
          cmd += " --config-file {0}".format(config_file)
  
      if export_path:
          cmd += " --export-path {0}".format(export_path)
      else:
          cmd += " --export-path {0}".format(MODEL_STORE)
  
      if force:
          cmd += " --force"
  
      return cmd
  
imports: import glob
  import importlib
  import json
  import os
  import subprocess
  import sys
  import tempfile
  import threading
  from io import TextIOWrapper
  from os import path
  from pathlib import Path
  from queue import Queue
  from subprocess import PIPE, STDOUT, Popen
  import orjson
  import requests
  from ts_scripts import marsgen
label_desc: Use image node_id 12 for calling a global function with example usage: model_archiver_command_builder(model_name, version, model_file, serialized_file, handler, extra_files, force, config_file, runtime, archive_format, requirements_file, export_path) and returns: cmd