code: def test_flat_fscore():
      score = metrics.flat_f1_score(y1, y2, average="macro")
      assert score == 2 / 3
      assert (
          metrics.flat_fbeta_score(y1, y2, beta=1, average="macro")
          == score
      )
  
file_path: sklearn-crfsuite/tests/test_metrics.py
imports: from __future__ import absolute_import, division
  import pytest
  from sklearn_crfsuite import metrics
label_desc: Use image node_id 4 for calling a global function with example usage: test_flat_fscore() without return types