code: def _convolve1d3o(in1, in2, mode):
      assert mode == "valid"
      out_dim = in1.shape[0] - max(in2.shape) + 1
      dtype = cupy.result_type(in1, in2)
      out = cupy.empty(out_dim, dtype=dtype)
      _convolve1d3o_kernel(in1, in2, *in2.shape, out)
      return out
  
imports: import cupy
label_desc: Use image node_id 3 for calling a global function with example usage: _convolve1d3o(in1, in2, mode) and returns: out