code: def flat_precision_score(y_true, y_pred, **kwargs):
      """
      Return precision score for sequence items.
      """
      from sklearn import metrics
  
      return metrics.precision_score(y_true, y_pred, **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 3 for calling a global function with example usage: flat_precision_score(y_true, y_pred) and returns: metrics