code: def test_thresholder_with_facets(self):
      config = {
          "cost_ratio": 1,
          "facets": {
              "label:1": {"data": _EXAMPLES[0:5]},
              "label:0": {"data": _EXAMPLES[5:9]},
          },
      }
      result = self.thresholder.run(
          _EXAMPLES,
          self.model,
          self.dataset,
          self.model_outputs,
          config=config,
      )
      thresholds = result[0]["thresholds"]
      self.assertEqual(0.71, thresholds["label:0"]["Single"])
      self.assertEqual(0.71, thresholds["label:1"]["Single"])
      self.assertEqual(0.86, thresholds["label:0"]["Individual"])
      self.assertEqual(0, thresholds["label:1"]["Individual"])
      self.assertEqual(0, thresholds["label:0"]["Demographic parity"])
  
file_path: lit/lit_nlp/components/thresholder_int_test.py
imports: from absl.testing import absltest
  from absl.testing import parameterized
  from lit_nlp.api import dataset
  from lit_nlp.api import types
  from lit_nlp.components import thresholder
  from lit_nlp.examples.models import glue_models
  from lit_nlp.lib import caching
  from lit_nlp.lib import file_cache
label_desc: Use image node_id 4 for calling the ThresholderTest obj's underlying member method code with example usage: obj.test_thresholder_with_facets() without return types