code: def test_sklearn_targets(xseq, yseq, targets):
      crf = CRF(c1=0.0, c2=0.1, max_iterations=50)
      crf.fit([xseq], [yseq])
  
      res = explain_weights(
          crf, target_names={"sunny": "☀"}, targets=targets
      )
      for expl in format_as_all(res, crf):
          assert "☀" in expl
          if targets[0] == "rainy":
              assert expl.index("rainy") < expl.index("☀")
          else:
              assert expl.index("rainy") > expl.index("☀")
  
file_path: eli5/tests/test_sklearn_crfsuite.py
imports: from __future__ import absolute_import, print_function
  import re
  import pytest
  import numpy
  from sklearn_crfsuite import CRF
  from eli5 import explain_weights
  from .utils import format_as_all
label_desc: Use image node_id 5 for calling a global function with example usage: test_sklearn_targets(xseq, yseq, targets) without return types