class_docstr: Test class for custom metric tests.
code: def tearDown(self):
      for filepath in chain(
          config_dir.glob("*custom_metrics.cfg"),
          config_dir.glob("*custom_metrics_kappa.cfg"),
          config_dir.glob("*custom_metrics_bad.cfg"),
          config_dir.glob("*custom_metrics_kwargs1.cfg"),
          config_dir.glob("*custom_metrics_kwargs2.cfg"),
          config_dir.glob("*custom_metrics_kwargs3.cfg"),
          config_dir.glob("*custom_metrics_kwargs4.cfg"),
          output_dir.glob("test_custom_metrics*"),
      ):
          unlink(filepath)
  
imports: import json
  import sys
  import unittest
  from itertools import chain
  import numpy
  from numpy.testing import assert_array_almost_equal, assert_array_equal, assert_raises_regex
  from sklearn.metrics import fbeta_score
  import skll.metrics
  from skll.data import NDJReader
  from skll.experiments import run_configuration
  from skll.learner import Learner
  from skll.metrics import _CUSTOM_METRICS, register_custom_metric, use_score_func
  from skll.utils.testing import config_dir, fill_in_config_paths_for_single_file, make_classification_data, other_dir, output_dir, unlink
label_desc: Use image node_id 2 for calling the TestCustomMetrics obj's underlying member method code with example usage: obj.tearDown() without return types