code: def test_init_invalid_metric_configuration(self):
      metrics = [Metric("val_acc", lower_is_better=False)]
      with self.assertRaisesRegex(
          ValueError, 'Required metric "val_loss" is not within'
      ):
          ModelSelection(metrics=metrics, required=["val_loss"])
  
imports: import unittest
  from small_text.training.metrics import Metric
  from small_text.training.model_selection import ModelSelectionResult, ModelSelection, NoopModelSelection
label_desc: Use image node_id 5 for calling the ModelSelectionTest obj's underlying member method code with example usage: obj.test_init_invalid_metric_configuration() without return types