code: def mod_labels(ys, task):
      if ys is not None:
          # replace comma-labeled babi tasks with spaces
          # this is more friendly to our tokenizer which makes commas full tokens
          # this way models won't be penalized for not generating a comma
          if task == "8":
              # holding: labels like 'milk,cookies,football'
              # replace with spaces 'milk football cookies'
              ys = [y.replace(",", " ") for y in ys]
          elif task == "19":
              # pathfinding: labels like 'n,e' or 's,w'
              # replace with spaces, 'n e'
              ys = [y.replace(",", " ") for y in ys]
  
      return ys
  
imports: from parlai.core.teachers import FbDeprecatedDialogTeacher, MultiTaskTeacher
  from .build import build
  import copy
  import os
label_desc: Use image node_id 2 for calling a global function with example usage: mod_labels(ys, task) and returns: ys