code: def im2col(
      img,
      kh,
      kw,
      sy,
      sx,
      ph,
      pw,
      cover_all=False,
      dy=1,
      dx=1,
      out_h=None,
      out_w=None,
  ):
      fn = im2col_gpu if isinstance(img, cuda.ndarray) else im2col_cpu
      return fn(
          img,
          kh,
          kw,
          sy,
          sx,
          ph,
          pw,
          cover_all=cover_all,
          dy=dy,
          dx=dx,
          out_h=out_h,
          out_w=out_w,
      )
  
file_path: chainer/chainer/utils/conv.py
imports: import numpy
  import six
  from chainer.backends import cuda
label_desc: Use image node_id 5 for calling a global function with example usage: im2col(img, kh, kw, sy, sx, ph, pw, cover_all, dy, dx, out_h, out_w) and returns: fn