code: def get_args(argv):
      parser = argparse.ArgumentParser(
          formatter_class=argparse.ArgumentDefaultsHelpFormatter,
          description=f"Update NLP models trained on previous versions to current version ",
      )
      parser.add_argument("source", help="Source .nemo file")
      parser.add_argument("out", help="Location to write result to")
      parser.add_argument(
          "--megatron-legacy",
          help="If the source model is megatron-bert trained on NeMo < 1.5",
      )
      parser.add_argument(
          "--megatron-checkpoint",
          type=str,
          help="Path of the MegatronBert nemo checkpoint converted from MegatronLM using megatron_lm_ckpt_to_nemo.py file (Not NLP model checkpoint)",
      )
      parser.add_argument(
          "--verbose",
          default=None,
          help="Verbose level for logging, numeric",
      )
      args = parser.parse_args(argv)
      return args
  
file_path: NeMo/scripts/nemo_legacy_import/nlp_checkpoint_port.py
imports: import argparse
  import logging
  import sys
  import pytorch_lightning
  from omegaconf import OmegaConf, open_dict
  from nemo.collections.nlp.parts.nlp_overrides import NLPSaveRestoreConnector
  from nemo.core import ModelPT
  from nemo.core.config import TrainerConfig
label_desc: Use image node_id 1 for calling a global function with example usage: get_args(argv) and returns: args