code: def subtract_valid(input_array, valid_bool_array, sub_val):
      pos = cuda.grid(1)
      if pos < input_array.size:
          if valid_bool_array[pos]:
              input_array[pos] = input_array[pos] - sub_val
  
imports: from cuml.internals.safe_imports import cpu_only_import
  from cuml.internals.safe_imports import gpu_only_import
  from cuml.internals.safe_imports import gpu_only_import_from
label_desc: Use image node_id 4 for calling a global function with example usage: subtract_valid(input_array, valid_bool_array, sub_val) without return types