code: def make_kernel_meta_const_dispatcher(meta: KernelLinkerMeta) -> str:
      src = f"CUresult {meta.orig_kernel_name}(CUstream stream, {gen_signature_with_full_args(meta)}, int algo_id){{\n"
      src += f"  assert (algo_id < (int)sizeof({meta.orig_kernel_name}_kernels));\n"
      src += f"  return {meta.orig_kernel_name}_kernels[algo_id](stream, {', '.join(meta.arg_names)});\n"
      src += "}\n"
      return src
  
imports: from collections import defaultdict
  from pathlib import Path
  from typing import Sequence, Union
  from dataclasses import dataclass
label_desc: Use image node_id 8 for calling a global function with example usage: make_kernel_meta_const_dispatcher(meta) and returns: src