code: def try_decode(pred):
      try:
          return json.loads(pred)
      except:
          return []
  
imports: from abc import ABCMeta
  import logging
  import json
  import numpy
  from finetune.encoding.target_encoders import BaseEncoder, Seq2SeqLabelEncoder, SequenceLabelingEncoder
label_desc: Use image node_id 1 for calling a global function with example usage: try_decode(pred) and returns: json, list