code: def test_find_spec_keys(
      self,
      types_to_find: Union[types.LitType, Sequence[types.LitType]],
      expected: Sequence[str],
  ):
      spec = {
          "score": types.RegressionScore(),
          "scalar_foo": types.Scalar(),
          "text": types.TextSegment(),
          "emb_0": types.Embeddings(),
          "emb_1": types.Embeddings(),
          "tokens": types.Tokens(),
          "generated_text": types.GeneratedText(),
      }
      found = utils.find_spec_keys(spec, types_to_find)
      self.assertEqual(expected, found)
  
imports: from collections.abc import Callable, Sequence
  import copy
  from typing import Any, Optional, TypeVar, Union
  from absl.testing import absltest
  from absl.testing import parameterized
  from lit_nlp.api import types
  from lit_nlp.lib import utils
  import numpy
label_desc: Use image node_id 4 for calling the UtilsTest obj's underlying member method code with example usage: obj.test_find_spec_keys(types_to_find, expected) without return types