code: def get_args_by_task_model(task, sub_task, model_tag):
      if task == "translate":
          # java-cs: Read 10300 examples, avg src len: 13, avg trg len: 15, max src len: 136, max trg len: 118
          # [TOKENIZE] avg src len: 45, avg trg len: 56, max src len: 391, max trg len: 404
          src_len = 320
          trg_len = 256
          epoch = 100
          patience = 5
      elif task == "summarize":
          # ruby: Read 24927 examples, avg src len: 66, avg trg len: 12, max src len: 501, max trg len: 146
          # [TOKENIZE] avg src len: 100, avg trg len: 13, max src len: 1250, max trg len: 161
          # Python: Read 251820 examples, avg src len: 100, avg trg len: 11, max src len: 512, max trg len: 222
          # [TOKENIZE] avg src len: 142, avg trg len: 12, max src len: 2016, max trg len: 245
          # Javascript: Read 58025 examples, avg src len: 114, avg trg len: 11, max src len: 512, max trg len: 165
          # [TOKENIZE] avg src len: 136, avg trg len: 12, max src len: 3016, max trg len: 177
          src_len = 256
          trg_len = 128
          epoch = 15
          patience = 2
      elif task == "refine":
          # small: Read 46680 examples, avg src len: 31, avg trg len: 28, max src len: 50, max trg len: 50
          # [TOKENIZE] avg src len: 50, avg trg len: 45, max src len: 129, max trg len: 121
          # medium:  Read 52364 examples, avg src len: 74, avg trg len: 73, max src len: 100, max trg len: 100
          # [TOKENIZE] avg src len: 117, avg trg len: 114, max src len: 238, max trg len: 238
          if sub_task == "small":
              src_len = 130
              trg_len = 120
          elif sub_task == "medium":
              src_len = 240
              trg_len = 240
          epoch = 50
          patience = 5
      elif task == "concode":
          # Read 100000 examples, avg src len: 71, avg trg len: 26, max src len: 567, max trg len: 140
          # [TOKENIZE] avg src len: 213, avg trg len: 33, max src len: 2246, max trg len: 264
          src_len = 320
          trg_len = 150
          epoch = 30
          patience = 3
      elif task == "defect":
          # Read 21854 examples, avg src len: 187, avg trg len: 1, max src len: 12195, max trg len: 1
          # [TOKENIZE] avg src len: 597, avg trg len: 1, max src len: 41447, max trg len: 1
          src_len = 512
          trg_len = 3
          epoch = 10
          patience = 2
      elif task == "clone":
          # Read 901028 examples, avg src len: 120, avg trg len: 123, max src len: 5270, max trg len: 5270
          # [TOKENIZE] avg src len: 318, avg trg len: 323, max src len: 15111, max trg len: 15111
          src_len = 400
          trg_len = 400
          epoch = 1
          patience = 2
  
      if "codet5_small" in model_tag:
          bs = 32
          if (
              task == "summarize"
              or task == "translate"
              or (task == "refine" and sub_task == "small")
          ):
              bs = 64
          elif task == "clone":
              bs = 25
      elif "codet5_large" in model_tag:
          bs = 8
      else:
          bs = 32
          if task == "translate":
              bs = 25
          elif task == "summarize":
              bs = 48
          elif task == "clone":
              if model_tag in ["codebert", "roberta"]:
                  bs = 16
              else:
                  bs = 10
      lr = 5
      if task == "concode":
          lr = 10
      elif task == "defect":
          lr = 2
      return bs, lr, src_len, trg_len, patience, epoch
  
imports: import os
  import argparse
label_desc: Use image node_id 2 for calling a global function with example usage: get_args_by_task_model(task, sub_task, model_tag) and returns: bs,  lr,  src_len,  trg_len,  patience,  epoch