code: def unpack_training_data(self, data):
      # override me, if this is not suit for your task
      if len(data) == 3:
          x, y, sample_weight = data
      else:
          x, y = data
          sample_weight = None
      return x, y, sample_weight
  
file_path: addons/tensorflow_addons/text/crf_wrapper.py
imports: import tensorflow
  from tensorflow_addons.text import crf_log_likelihood
  from tensorflow_addons.utils import types
label_desc: Use image node_id 2 for calling the CRFModelWrapper obj's underlying member method code with example usage: obj.unpack_training_data(data) and returns: x,  y,  sample_weight