code: def set_training_args(training_args, args):
      for argname, argvalue in args.items():
          if argvalue is not None:
              setattr(training_args, argname, argvalue)
      return training_args
  
file_path: orion/examples/huggingface/main.py
imports: import logging
  import os
  import argparse
  from copy import deepcopy
  import hydra
  import numpy
  import torch
  from datasets import load_dataset, load_metric
  from omegaconf import DictConfig
  from transformers import AutoModelForSeq2SeqLM, AutoTokenizer, DataCollatorForSeq2Seq, Seq2SeqTrainer, Seq2SeqTrainingArguments, TrainerCallback
label_desc: Use image node_id 2 for calling a global function with example usage: set_training_args(training_args, args) and returns: training_args