code: def _uops_to_prg(uops):
      src = Device[Device.DEFAULT].renderer("test", uops)
      lib = Device[Device.DEFAULT].compiler(src)
      return CompiledASTRunner(
          None,
          "test",
          src,
          lib,
          Device[Device.DEFAULT],
          [1]
          if Device[Device.DEFAULT].linearizer_opts.has_local
          else None,
          [1]
          if Device[Device.DEFAULT].linearizer_opts.has_local
          else None,
      ).build(Device[Device.DEFAULT].runtime)
  
imports: from typing import Optional, Tuple, Any, List
  import unittest, math
  import numpy
  from tinygrad.dtype import dtypes, DType, PtrDType
  from tinygrad.helpers import getenv
  from tinygrad.device import Buffer, Device
  from tinygrad.ops import UnaryOps, BinaryOps, TernaryOps
  from tinygrad.device import CompiledASTRunner, Compiled
  from tinygrad.codegen.linearizer import UOps, UOp
  from test.test_dtype import is_dtype_supported
label_desc: Use image node_id 1 for calling a global function with example usage: _uops_to_prg(uops) and returns: CompiledASTRunner