code: def test_validate_dataset_report_all_log_counts(
      self,
      spec: types.Spec,
      examples: list[types.JsonDict],
      enforce_all_fields_required: bool,
      expected_log_count: int,
  ):
      ds = dataset.Dataset(spec=spec, examples=examples)
      with self.assertLogs(level="ERROR") as logs:
          with self.assertRaises(ValueError):
              validation.validate_dataset(
                  ds,
                  enforce_all_fields_required=enforce_all_fields_required,
                  report_all=True,
              )
          self.assertLen(logs.output, expected_log_count)
  
file_path: lit/lit_nlp/lib/validation_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.lib import testing_utils
  from lit_nlp.lib import validation
label_desc: Use image node_id 6 for calling the ValidationTest obj's underlying member method code with example usage: obj.test_validate_dataset_report_all_log_counts(spec, examples, enforce_all_fields_required, expected_log_count) without return types