code: def convert_command_factory(args: Namespace):
      """
      Factory function used to convert a model TF 1.0 checkpoint in a PyTorch checkpoint.
  
      Returns: ServeCommand
      """
      return ConvertCommand(
          args.model_type,
          args.tf_checkpoint,
          args.pytorch_dump_output,
          args.config,
          args.finetuning_task_name,
      )
  
file_path: H2O/h2o_flexgen/benchmark/third_party/transformers/src/transformers/commands/convert.py
imports: from argparse import ArgumentParser, Namespace
  from ..utils import logging
  from .None import BaseTransformersCLICommand
label_desc: Use image node_id 1 for calling a global function with example usage: convert_command_factory(args) and returns: ConvertCommand