code: def add_subparser(self, name, parser):
      # pylint: disable=protected-access
      description = (
          """Continues training a saved model on a new dataset."""
      )
      subparser = parser.add_parser(
          name,
          description=description,
          help="Continue training a model on a new dataset",
      )
  
      subparser.add_argument(
          "-m",
          "--model-archive",
          required=True,
          type=unicode,
          help="path to the saved model archive from training on the original data",
      )
  
      subparser.add_argument(
          "-c",
          "--config-file",
          required=True,
          type=unicode,
          help="configuration file to use for training. Format is the same as "
          'for the "train" command, but the "model" section is ignored.',
      )
  
      subparser.add_argument(
          "-s",
          "--serialization-dir",
          required=True,
          type=unicode,
          help="directory in which to save the fine-tuned model and its logs",
      )
  
      subparser.add_argument(
          "-o",
          "--overrides",
          type=unicode,
          default="",
          help="a JSON structure used to override the training configuration "
          "(only affects the config_file, _not_ the model_archive)",
      )
  
      subparser.add_argument(
          "--extend-vocab",
          action="store_true",
          default=False,
          help="if specified, we will use the instances in your new dataset to "
          "extend your vocabulary. Currently expansion of embedding layers "
          "is not implemented, so if your model has an embedding layer "
          "this will probably make fine-tune crash.",
      )
  
      subparser.add_argument(
          "--file-friendly-logging",
          action="store_true",
          default=False,
          help="outputs tqdm status on separate lines and slows tqdm refresh rate",
      )
  
      subparser.set_defaults(func=fine_tune_model_from_args)
  
      return subparser
  
imports: from __future__ import with_statement
  from __future__ import absolute_import
  import argparse
  import json
  import logging
  import os
  from copy import deepcopy
  import re
  from allennlp.commands.evaluate import evaluate
  from allennlp.commands.subcommand import Subcommand
  from allennlp.commands.train import datasets_from_params
  from allennlp.common import Params
  from allennlp.common.util import prepare_environment, prepare_global_logging, get_frozen_and_tunable_parameter_names
  from allennlp.data.iterators.data_iterator import DataIterator
  from allennlp.models import load_archive, archive_model
  from allennlp.models.archival import CONFIG_NAME
  from allennlp.models.model import Model, _DEFAULT_WEIGHTS
  from allennlp.training.trainer import Trainer
  from allennlp.common.checks import ConfigurationError
  from io import open
label_desc: Use image node_id 1 for calling the FineTune obj's underlying member method code with example usage: obj.add_subparser(name, parser) and returns: subparser