code: def _annotation_has_type(*, typ, annotation):
      if hasattr(annotation, "__args__"):
          for a in annotation.__args__:
              if _annotation_has_type(typ=typ, annotation=a):
                  return True
          return False
  
      return typ is annotation
  
imports: import inspect
  import warnings
  from functools import wraps
  from itertools import chain
  from typing import Callable, NamedTuple, Optional, overload, Sequence, Tuple
  import torch
  import torch._prims_common
  from torch._prims_common import CustomOutParamAnnotation, ELEMENTWISE_TYPE_PROMOTION_KIND, Number, NumberType, ShapeType, TensorLike, TensorLikeType
  from torch.utils import _pytree
  from torch.utils._pytree import tree_flatten, tree_unflatten
label_desc: Use image node_id 7 for calling a global function with example usage: _annotation_has_type() and returns: unknown, False, True