code: def _normalize_ty(ty) -> str:
      if isinstance(ty, type):
          return ty.__name__
      elif isinstance(ty, str):
          return ty
      return repr(ty)
  
imports: from __future__ import annotations, division
  import ast
  import hashlib
  import inspect
  import os
  import textwrap
  from collections import defaultdict, namedtuple
  from functools import cached_property
  from typing import Callable, Generic, Iterable, List, Optional, TypeVar, Union, cast, overload
  from ..runtime.driver import driver
label_desc: Use image node_id 1 for calling a global function with example usage: _normalize_ty(ty) and returns: repr, ty, ty