code: def get_typed_annotation(
      annotation: Any, globalns: Dict[str, Any]
  ) -> Any:
      """Get the type annotation of a parameter.
  
      Args:
          annotation: The annotation of the parameter
          globalns: The global namespace of the function
  
      Returns:
          The type annotation of the parameter
      """
      if isinstance(annotation, str):
          annotation = ForwardRef(annotation)
          annotation = evaluate_forwardref(
              annotation, globalns, globalns
          )
      return annotation
  
imports: import functools
  import inspect
  import json
  from logging import getLogger
  from typing import Any, Callable, Dict, ForwardRef, List, Optional, Set, Tuple, Type, TypeVar, Union
  from pydantic import BaseModel, Field
  from typing_extensions import Annotated, Literal, get_args, get_origin
  from ._pydantic import JsonSchemaValue, evaluate_forwardref, model_dump, model_dump_json, type2schema
label_desc: Use image node_id 1 for calling a global function with example usage: get_typed_annotation(annotation, globalns) and returns: annotation