code: def add_lang_by_task(target_str, task, sub_task):
      if task == "summarize":
          target_str = "<en> " + target_str
      elif task == "refine":
          target_str = "<java> " + target_str
      elif task == "translate":
          if sub_task == "java-cs":
              target_str = "<c_sharp> " + target_str
          else:
              target_str = "<java> " + target_str
      elif task == "concode":
          target_str = "<java> " + target_str
      elif task == "defect":
          target_str = target_str
      return target_str
  
imports: import json
label_desc: Use image node_id 1 for calling a global function with example usage: add_lang_by_task(target_str, task, sub_task) and returns: target_str