code: def find_spec_keys(d: Mapping[K, Any], types) -> list[K]:
      """Find keys where values match one or more types."""
      return find_keys(d, lambda v: isinstance(v, types))
  
imports: from collections.abc import Callable, Collection, Iterable, Iterator, Mapping, Sequence
  import itertools
  import queue
  import threading
  import time
  from typing import Any, Optional, TypeVar, Union
  import uuid
  from lit_nlp.api import types
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: find_spec_keys(d, types) and returns: find_keys