code: def gather_params(link):
      """Put together all gradient arrays and make a single array
  
      Args:
          link (chainer.link.Link): Target link object.
      Return:
          cupy.ndarray
      """
      if link.xp is numpy:
          raise RuntimeError("Link.gather_params works only on GPU.")
      return _gather(link, "data")
  
imports: import multiprocessing
  import warnings
  import numpy
  import six
  import chainer
  from chainer.backends import cuda
  from chainer.dataset import convert
  from chainer import reporter
  from chainer.training.updaters import standard_updater
label_desc: Use image node_id 6 for calling a global function with example usage: gather_params(link) and returns: _gather