code: def grad_rollaxis(ans, a, axis, start=0):
      if axis < 0:
          raise NotImplementedError(
              "Gradient of rollaxis not implemented for axis < 0. "
              "Please use moveaxis instead."
          )
      elif start < 0:
          raise NotImplementedError(
              "Gradient of rollaxis not implemented for start < 0. "
              "Please use moveaxis instead."
          )
      return (
          lambda g: anp.rollaxis(g, start - 1, axis)
          if start > axis
          else anp.rollaxis(g, start, axis + 1)
      )
  
imports: from __future__ import absolute_import
  from six import string_types
  from functools import partial
  import numpy
  from ..util import func
  from .None import numpy_wrapper
  from .numpy_boxes import ArrayBox
  from autograd.extend import primitive, vspace, defvjp, defvjp_argnum, SparseObject, VJPNode, register_notrace
label_desc: Use image node_id 1 for calling a global function with example usage: grad_rollaxis(ans, a, axis, start) and returns: function