code: def test_binary():
      "Test exception is raised if label is not binary in f1"
      try:
          y_targ = [1, 1, 1, 0, 0, 2, 0, 3]
          y_pred = [1, 0, 1, 0, 0, 2, 1, 3]
          scoring(y_target=y_targ, y_predicted=y_pred, metric="f1")
          assert False
      except AttributeError:
          assert True
  
file_path: mlxtend/mlxtend/evaluate/tests/test_scoring.py
imports: import numpy
  from mlxtend.evaluate import scoring
label_desc: Use image node_id 5 for calling a global function with example usage: test_binary() without return types