code: def parse_args():
      parser = argparse.ArgumentParser(
          description="Export Bart model + Beam Search to ONNX graph."
      )
      parser.add_argument(
          "--validation_file",
          type=str,
          default=None,
          help="A csv or a json file containing the validation data.",
      )
      parser.add_argument(
          "--max_length",
          type=int,
          default=5,
          help="The maximum total input sequence length after tokenization.",
      )
      parser.add_argument(
          "--num_beams",
          type=int,
          default=None,
          help=(
              "Number of beams to use for evaluation. This argument will be "
              "passed to ``model.generate``, which is used during ``evaluate`` and ``predict``."
          ),
      )
      parser.add_argument(
          "--model_name_or_path",
          type=str,
          help="Path to pretrained model or model identifier from huggingface.co/models.",
          required=True,
      )
      parser.add_argument(
          "--config_name",
          type=str,
          default=None,
          help="Pretrained config name or path if not the same as model_name",
      )
      parser.add_argument(
          "--device",
          type=str,
          default="cpu",
          help="Device where the model will be run",
      )
      parser.add_argument(
          "--output_file_path",
          type=str,
          default=None,
          help="Where to store the final ONNX file.",
      )
  
      args = parser.parse_args()
  
      return args
  
file_path: H2O/h2o_flexgen/benchmark/third_party/transformers/examples/research_projects/onnx/summarization/run_onnx_exporter.py
imports: import argparse
  import logging
  import os
  import sys
  import numpy
  import torch
  import onnxruntime
  import transformers
  from bart_onnx.generation_onnx import BARTBeamSearchGenerator
  from bart_onnx.reduce_onnx_size import remove_dup_initializers
  from transformers import BartForConditionalGeneration, BartTokenizer
label_desc: Use image node_id 1 for calling a global function with example usage: parse_args() and returns: args