docstr: Test spec compatibility between models and datasets.
docstr_tok: ["Test","spec","compatibility","between","models","and","datasets","."]
code: def test_compatibility(
      self,
      input_spec: types.Spec,
      dataset_spec: types.Spec,
      expected: bool,
  ):
      """Test spec compatibility between models and datasets."""
      dataset = lit_dataset.Dataset(spec=dataset_spec)
      ctm = _CompatibilityTestModel(input_spec)
      self.assertEqual(
          ctm.is_compatible_with_dataset(dataset), expected
      )
  
imports: 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
label_desc: Use image node_id 1 for calling the ModelTest obj's underlying member method code with example usage: obj.test_compatibility(input_spec, dataset_spec, expected) without return types