code: def flat_classification_report(y_true, y_pred, labels=None, **kwargs):
      """
      Return classification report for sequence items.
      """
      from sklearn import metrics
  
      return metrics.classification_report(
          y_true, y_pred, labels, **kwargs
      )
  
file_path: sklearn-crfsuite/sklearn_crfsuite/metrics.py
imports: from __future__ import absolute_import, division
  from functools import wraps
  from sklearn_crfsuite.utils import flatten
label_desc: Use image node_id 7 for calling a global function with example usage: flat_classification_report(y_true, y_pred, labels) and returns: metrics