code: def _is_typeddict(tp: Any) -> bool:
      # TODO(b/297787104): We can just use typing_extensions.is_typeddict which
      # would handle python version branch together as well.
      if sys.version_info >= (3, 10):
          return typing.is_typeddict(
              tp
          )  # pytype: disable=not-supported-yet
      else:
          return typing_extensions.is_typeddict(tp)
  
file_path: tfx/tfx/dsl/component/experimental/function_parser.py
imports: import inspect
  import sys
  import types
  import typing
  from typing import Any, Dict, NamedTuple, Optional, Type, Union, get_args, get_origin
  from tfx.dsl.component.experimental import annotations
  from tfx.dsl.component.experimental import json_compat
  from tfx.dsl.component.experimental import utils
  from tfx.types import artifact
  from tfx.types import standard_artifacts
  import typing_extensions
label_desc: Use image node_id 1 for calling a global function with example usage: _is_typeddict(tp) and returns: typing, typing_extensions