code: def get_args():
      parser = ArgumentParser()
      parser.add_argument(
          "--in-folder",
          type=str,
          default=None,
          required=True,
          help="Path to extracted, TP1 PP1 NeMo GPT checkpoint.",
      )
      parser.add_argument(
          "--out-file",
          type=str,
          default=None,
          required=True,
          help="Path to output mcore weights file (ends in .nemo).",
      )
      parser.add_argument(
          "--cpu-only",
          action="store_true",
          help="Load model in cpu only. Useful if the model cannot fit in GPU memory, "
          "but this option makes the conversion script significantly slower.",
      )
      parser.add_argument(
          "--overwrite",
          action="store_true",
          help="Run conversion again and overwrite output file when the output file already exists",
      )
      parser.add_argument(
          "--ignore-if-missing",
          default="rotary_pos_emb.inv_freq",
          help="comma-separated list of state_dict keys that are known to be missing in mcore and can be safely ignored",
      )
      args = parser.parse_args()
      return args
  
file_path: NeMo/scripts/nlp_language_modeling/convert_nemo_gpt_to_mcore.py
imports: import os
  from argparse import ArgumentParser
  from collections import OrderedDict
  import torch
  from omegaconf import OmegaConf, open_dict
  from pytorch_lightning.trainer.trainer import Trainer
  from nemo.collections.nlp.models.language_modeling.megatron_gpt_model import MegatronGPTModel
  from nemo.collections.nlp.parts.nlp_overrides import NLPDDPStrategy
  from nemo.utils import AppState, logging
label_desc: Use image node_id 1 for calling a global function with example usage: get_args() and returns: args