code: def get_args(pretrain: bool = False, finetune: bool = False):
      parser = argparse.ArgumentParser()
      parser = add_model_config_args(parser)
      parser = add_training_args(parser)
      if pretrain:
          parser = add_pretrain_args(parser)
      if finetune:
          parser = add_finetune_args(parser)
  
      args = parser.parse_args()
      return args
  
imports: import argparse
label_desc: Use image node_id 5 for calling a global function with example usage: get_args(pretrain, finetune) and returns: args