code: def _pool1d(in_size, out_size, np_data, np_op):
      out = np.zeros(out_size).astype(np_data.dtype)
      ow = out_size[0]
      for l in range(ow):
          l_start = _start_index(l, ow, in_size[0])
          l_end = _end_index(l, ow, in_size[0])
          l_sl = slice(l_start, l_end)
          out[l] = np_op(np_data[l_sl])
      return out
  
file_path: tvm/python/tvm/topi/testing/adaptive_pool_python.py
imports: import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: _pool1d(in_size, out_size, np_data, np_op) and returns: out