code: def test_accuracy():
      "Test accuracy metric"
      y_targ = [1, 1, 1, 0, 0, 2, 0, 3]
      y_pred = [1, 0, 1, 0, 0, 2, 1, 3]
      res = scoring(
          y_target=y_targ, y_predicted=y_pred, metric="accuracy"
      )
      assert res == 0.75
  
file_path: mlxtend/mlxtend/evaluate/tests/test_scoring.py
imports: import numpy
  from mlxtend.evaluate import scoring
label_desc: Use image node_id 3 for calling a global function with example usage: test_accuracy() without return types