class_docstr: Test class for second set of voting learner API tests.
class_docstr_tok: ["Test","class","for","second","set","of","voting","learner","API","tests","."]
code: def test_evaluate_bad_output_metric(self):
      vl = VotingLearner(["SVC", "LogisticRegression", "MultinomialNB"])
      vl.train(TRAIN_FS_DIGITS[:100], grid_search=False)
      assert_raises_regex(
          ValueError,
          r"metrics are not valid",
          vl.evaluate,
          TEST_FS_DIGITS[:100],
          output_metrics=["f05", "pearson"],
      )
  
imports: import re
  import unittest
  from itertools import product
  import numpy
  from numpy.testing import assert_raises_regex
  from scipy.stats import pearsonr
  from sklearn.ensemble import VotingClassifier, VotingRegressor
  from sklearn.metrics import accuracy_score, f1_score, mean_squared_error
  from sklearn.model_selection import ShuffleSplit, learning_curve
  from sklearn.pipeline import Pipeline
  from skll.learner import Learner
  from skll.learner.voting import VotingLearner
  from skll.utils.logging import close_and_remove_logger_handlers, get_skll_logger
  from skll.utils.testing import make_california_housing_data, make_digits_data, other_dir, output_dir
label_desc: Use image node_id 4 for calling the TestVotingLearnersAPITwo obj's underlying member method code with example usage: obj.test_evaluate_bad_output_metric() without return types