code: def test_type_validate_input(
      self, lit_type: types.LitType, value: Any
  ):
      spec = {"score": types.Scalar(), "text": types.TextSegment()}
      example = {}
      try:
          lit_type.validate_input(value, spec, example)
      except ValueError:
          self.fail("Raised unexpected error.")
  
imports: from collections.abc import Callable
  import os
  from typing import Any, Optional, Union
  from absl.testing import absltest
  from absl.testing import parameterized
  from etils import epath
  from lit_nlp.api import dtypes
  from lit_nlp.api import types
  import numpy
label_desc: Use image node_id 7 for calling the TypesTest obj's underlying member method code with example usage: obj.test_type_validate_input(lit_type, value) without return types