code: def render_const(args, dtype: DType):
      return (
          (("-" if args < 0 else "") + 'tl.where(1,float("inf"),0)')
          if math.isinf(args)
          else (
              'tl.where(1,float("nan"),0)'
              if math.isnan(args)
              else f"{int(args)}"
              if dtypes.is_int(dtype)
              else str(args)
          )
      )
  
file_path: tinygrad/extra/backends/triton.py
imports: from typing import Dict, List, Final, Callable, DefaultDict
  from collections import defaultdict
  from tinygrad.ops import UnaryOps, BinaryOps, TernaryOps, Op
  from tinygrad.helpers import DType, PtrDType, dtypes, ImageDType, DEBUG, getenv
  from tinygrad.codegen.linearizer import UOp, UOps
  from triton.compiler import compile
  import linecache
  import math
  import re
label_desc: Use image node_id 6 for calling a global function with example usage: render_const(args, dtype) and returns: unknown