class_docstr: Tests CurvesInterpreter.
docstr: Tests a happy scenario when a user doesn't specify the class label.
code: def test_interpreter_honors_user_selected_label(
      self, label: str, exp_roc: _Curve, exp_pr: _Curve
  ):
      """Tests a happy scenario when a user doesn't specify the class label."""
      curves_data = self.ci.run(
          inputs=self.dataset.examples,
          model=self.model,
          dataset=self.dataset,
          config={
              curves.TARGET_LABEL_KEY: label,
              curves.TARGET_PREDICTION_KEY: "pred",
          },
      )
      self.assertIn(curves.ROC_DATA, curves_data)
      self.assertIn(curves.PR_DATA, curves_data)
      self.assertEqual(curves_data[curves.ROC_DATA], exp_roc)
      self.assertEqual(curves_data[curves.PR_DATA], exp_pr)
  
imports: from typing import NamedTuple
  from absl.testing import absltest
  from absl.testing import parameterized
  from lit_nlp.api import dataset
  from lit_nlp.api import model
  from lit_nlp.api import types
  from lit_nlp.components import curves
  from lit_nlp.lib import caching
label_desc: Use image node_id 4 for calling the CurvesInterpreterTest obj's underlying member method code with example usage: obj.test_interpreter_honors_user_selected_label(label, exp_roc, exp_pr) without return types