code: def convert_type_repr(x):
      # Currently we only capture the pointer type and assume the pointer is on global memory.
      # TODO: Capture and support shared memory space
      match = re.search(r"!tt\.ptr<([^,]+)", x)
      if match is not None:
          return "*" + convert_type_repr(match.group(1))
      return x
  
imports: from __future__ import annotations
  import hashlib
  import json
  from .._C.libtriton import get_env_vars, ir
  from ..backends import backends
  from ..None import __version__
  from ..runtime.autotuner import OutOfResources
  from ..runtime.cache import get_cache_manager
  from ..runtime.driver import driver
  from ..backends.nvidia.compiler import InfoFromBackendForTensorMap
  from dataclasses import dataclass
  from .code_generator import ast_to_ttir
  from pathlib import Path
  import re
  import functools
  import os
label_desc: Use image node_id 1 for calling a global function with example usage: convert_type_repr(x) and returns: x, unknown