code: def _rotate_pil(img, angle, expand, fill, interpolation):
      out = []
      for ch in img:
          ch = PIL.Image.fromarray(ch, mode="F")
          out.append(
              np.array(
                  ch.rotate(
                      angle,
                      expand=expand,
                      fillcolor=fill,
                      resample=interpolation,
                  )
              )
          )
      out = np.stack(out)
      if np.issubdtype(img.dtype, np.integer):
          out = np.round(out)
      return out.astype(img.dtype)
  
imports: from __future__ import division
  import numpy
  import PIL
  import chainer
label_desc: Use image node_id 2 for calling a global function with example usage: _rotate_pil(img, angle, expand, fill, interpolation) and returns: out