code: def test_auc_metric_fn_error(
      self,
      metric_fn_factory,
      label_vocabulary,
      labels_fn,
      predictions_fn,
      exception_class,
  ):
      with self.assertRaises(exception_class):
          metric_fn = metric_fn_factory(label_vocabulary)
          metric_fn(labels_fn(), predictions_fn())
  
file_path: model_search/model_search/metric_fns_test.py
imports: from absl.testing import parameterized
  from model_search import metric_fns
  import numpy
  import tensorflow.compat.v2
label_desc: Use image node_id 3 for calling the MetricFnsTest obj's underlying member method code with example usage: obj.test_auc_metric_fn_error(metric_fn_factory, label_vocabulary, labels_fn, predictions_fn, exception_class) without return types