code: def _get_annotations(value: Any) -> Mapping[str, Any]:
      # In python 3.10+ we have `inspect.get_annotations` which is very similar to
      # `typing.get_type_hints`, but does not perform stringized type evaluation and
      # ignores annotation inheritance by default. (Check each code docstring for
      # subtle behavior diff.) The intended behavior for is_compatible is more close
      # to `typing.get_type_hints`, so we use this.
      return typing.get_type_hints(value)
  
file_path: tfx/tfx/utils/pure_typing_utils.py
imports: import collections.abc
  import inspect
  import sys
  import types
  import typing
  from typing import Any, Iterable, Literal, Mapping, Type, TypeVar, TypedDict
  from typing_extensions import Annotated, NotRequired, Required, TypeGuard
  from google.protobuf.internal import enum_type_wrapper
label_desc: Use image node_id 1 for calling a global function with example usage: _get_annotations(value) and returns: typing