code: def parse_args():
      parser = argparse.ArgumentParser(
          description="Convert the fairseq XLM-R Model to Gluon."
      )
      parser.add_argument(
          "--fairseq_model_path",
          type=str,
          required=True,
          help="Directory of the fairseq XLM-R model.",
      )
      parser.add_argument(
          "--model_size",
          type=str,
          choices=["base", "large"],
          default="base",
          help="Size of XLM-R model.",
      )
      parser.add_argument(
          "--save_dir",
          type=str,
          default=None,
          help="Directory path to save the converted XLM-R model.",
      )
      parser.add_argument(
          "--gpu",
          type=int,
          default=None,
          help="The single gpu to run mxnet, (e.g. --gpu 0) the default device is cpu.",
      )
      parser.add_argument(
          "--test",
          action="store_true",
          help="Whether to test the conversion.",
      )
      return parser.parse_args()
  
file_path: gluon-nlp/scripts/conversion_toolkits/convert_fairseq_xlmr.py
imports: import os
  import copy
  import logging
  import argparse
  import mxnet
  from gluonnlp.utils.misc import logging_config
  from gluonnlp.models.xlmr import XLMRModel, XLMRForMLM
  from gluonnlp.third_party import sentencepiece_model_pb2
  from fairseq.models.roberta import XLMRModel
  from convert_fairseq_roberta import rename, test_model, test_vocab, convert_config, convert_params
  from gluonnlp.data.tokenizers import SentencepieceTokenizer
label_desc: Use image node_id 1 for calling a global function with example usage: parse_args() and returns: parser