code: def lower_constant_masked(context, builder, ty, val):
      masked = cgutils.create_struct_proxy(ty)(context, builder)
      masked.value = context.get_constant(ty.value_type, val.value)
      masked.valid = context.get_constant(types.boolean, val.valid)
      return masked._getvalue()
  
imports: import operator
  from llvmlite import ir
  from numba.core import cgutils
  from numba.core.typing import signature
  from numba.cuda.cudaimpl import lower, registry
  from numba.extending import lower_builtin, types
  from cudf.core.udf import api
  from cudf.core.udf._ops import arith_ops, bitwise_ops, comparison_ops, unary_ops
  from cudf.core.udf.masked_typing import MaskedType, NAType, _supported_masked_types
label_desc: Use image node_id 18 for calling a global function with example usage: lower_constant_masked(context, builder, ty, val) and returns: masked