code: def is_typealias(obj: dc.Object | dc.Alias) -> bool:
      """
      Return True if obj is a declaration of a TypeAlias
      """
      # TODO:
      # Figure out if this handles new-style typealiases introduced
      # in python 3.12 to handle
      if not (isinstance(obj, dc.Attribute) and obj.annotation):
          return False
      elif isinstance(obj.annotation, expr.ExprName):
          return obj.annotation.name == "TypeAlias"
      elif isinstance(obj.annotation, str):
          return True
      return False
  
imports: from __future__ import annotations
  from dataclasses import dataclass, field
  from typing import TypeGuard, TypeVar
  from griffe import dataclasses
  from griffe import expressions
  from quartodoc import layout
  from quartodoc.pandoc.inlines import Link
  from .typing import DocMemberType, DocType
label_desc: Use image node_id 2 for calling a global function with example usage: is_typealias(obj) and returns: False, False, unknown, True