code: def crf_accuracy(y_true, y_pred):
      """Ge default accuracy based on CRF `test_mode`."""
      crf, idx = y_pred._keras_history[:2]
      if crf.test_mode == "viterbi":
          return crf_viterbi_accuracy(y_true, y_pred)
  
imports: from __future__ import absolute_import, division
  from ....None import utils
  from ....imports import *
label_desc: Use image node_id 6 for calling a global function with example usage: crf_accuracy(y_true, y_pred) and returns: crf_viterbi_accuracy