code: def _validate_kernel(dtype):
      return cuda_kernel_factory(
          validate_kernel_str, (dtype,), "validate_labels_kernel"
      )
  
file_path: cuml/python/cuml/prims/label/classlabels.py
imports: from cuml.common.kernel_utils import cuda_kernel_factory
  from cuml.internals.array import CumlArray
  import cuml.internals
  from cuml.internals.input_utils import input_to_cupy_array
  import math
  import typing
  from cuml.internals.safe_imports import gpu_only_import
label_desc: Use image node_id 3 for calling a global function with example usage: _validate_kernel(dtype) and returns: cuda_kernel_factory