code: def test_flat_f1_score_binary():
      s = [["x", "y"], ["x", "y"]]
      score = metrics.flat_f1_score(s, s, average="weighted")
      assert score == 1.0
  
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 5 for calling a global function with example usage: test_flat_f1_score_binary() without return types