code: def use_feat(opt, field, ttype):
      if "all" in opt.get(field) or opt.get(field) == ttype:
          return True
      else:
          return False
  
imports: import random
  import io
  import os
  import json
  from parlai.utils.misc import msg_to_str
label_desc: Use image node_id 1 for calling a global function with example usage: use_feat(opt, field, ttype) and returns: True, False