code: def is_type_comment(leaf: Leaf) -> bool:
      """Return True if the given leaf is a type comment. This function should only
      be used for general type comments (excluding ignore annotations, which should
      use `is_type_ignore_comment`). Note that general type comments are no longer
      used in modern version of Python, this function may be deprecated in the future.
      """
      t = leaf.type
      v = leaf.value
      return t in {token.COMMENT, STANDALONE_COMMENT} and v.startswith(
          "# type:"
      )
  
imports: import sys
  from typing import Final, Generic, Iterator, List, Optional, Set, Tuple, TypeVar, Union
  from mypy_extensions import mypyc_attr
  from black.cache import CACHE_DIR
  from black.mode import Mode, Preview
  from black.strings import get_string_prefix, has_triple_quotes
  from blib2to3 import pygram
  from blib2to3.pgen2 import token
  from blib2to3.pytree import NL, Leaf, Node, type_repr
label_desc: Use image node_id 33 for calling a global function with example usage: is_type_comment(leaf) and returns: unknown