code: def cli_export_carton(sys_argv):
      parser = argparse.ArgumentParser(
          description="This script loads a pretrained model "
          "and saves it as a Carton.",
          prog="ludwig export_carton",
          usage="%(prog)s [options]",
      )
  
      # ----------------
      # Model parameters
      # ----------------
      parser.add_argument(
          "-m", "--model_path", help="model to load", required=True
      )
      parser.add_argument(
          "-mn", "--model_name", help="model name", default="carton"
      )
  
      # -----------------
      # Output parameters
      # -----------------
      parser.add_argument(
          "-op",
          "--output_path",
          type=str,
          help="path where to save the export model",
          required=True,
      )
  
      # ------------------
      # Runtime parameters
      # ------------------
      parser.add_argument(
          "-l",
          "--logging_level",
          default="info",
          help="the level of logging to use",
          choices=[
              "critical",
              "error",
              "warning",
              "info",
              "debug",
              "notset",
          ],
      )
  
      add_contrib_callback_args(parser)
      args = parser.parse_args(sys_argv)
  
      args.callbacks = args.callbacks or []
      for callback in args.callbacks:
          callback.on_cmdline("export_carton", *sys_argv)
  
      args.logging_level = get_logging_level_registry()[
          args.logging_level
      ]
      logging.getLogger("ludwig").setLevel(args.logging_level)
      global logger
      logger = logging.getLogger("ludwig.export")
  
      print_ludwig("Export Carton", LUDWIG_VERSION)
  
      export_carton(**vars(args))
  
imports: import argparse
  import logging
  import os
  import sys
  from typing import Optional
  from ludwig.api import LudwigModel
  from ludwig.contrib import add_contrib_callback_args
  from ludwig.globals import LUDWIG_VERSION
  from ludwig.utils.carton_utils import export_carton
  from ludwig.utils.neuropod_utils import export_neuropod
  from ludwig.utils.print_utils import get_logging_level_registry, print_ludwig
  from ludwig.utils.triton_utils import export_triton
label_desc: Use image node_id 8 for calling a global function with example usage: cli_export_carton(sys_argv) without return types