def METHOD_NAME(
    model_name=None,
    version=None,
    model_file=None,
    serialized_file=None,
    handler=None,
    extra_files=None,
    runtime=None,
    archive_format=None,
    requirements_file=None,
    export_path=None,
    force=True,
):
    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 export_path:
        cmd += " --export-path {0}".format(export_path)
    if force:
        cmd += " --force"
    return cmd