code: def test_validate_dataset_raises_for_enforce_all_fields_required(
      self, spec: types.Spec, examples: list[types.JsonDict]
  ):
      ds = dataset.Dataset(spec=spec, examples=examples)
      with self.assertRaises(ValueError):
          validation.validate_dataset(
              ds, enforce_all_fields_required=True
          )
  
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 3 for calling the ValidationTest obj's underlying member method code with example usage: obj.test_validate_dataset_raises_for_enforce_all_fields_required(spec, examples) without return types