parameters: (src, angle_limits, zoom_in=False, zoom_out=False)
return_statement: return imrotate(src, rotation_degrees,
                      zoom_in=zoom_in, zoom_out=zoom_out)
docstring: Random rotates `src` by an angle included in angle limits.
  
      Parameters
      ----------
      src : NDArray
          Input image (format CHW) or batch of images (format NCHW),
          in both case is required a float32 data type.
      angle_limits: tuple
          Tuple of 2 elements containing the upper and lower limit
          for rotation angles in degree.
      zoom_in: bool
          If True input image(s) will be zoomed in a way so that no padding
          will be shown in the output result.
      zoom_out: bool
          If True input image(s) will be zoomed in a way so that the whole
          original image will be contained in the output result.
      Returns
      -------
      NDArray
          An `NDArray` containing the rotated image(s).
docstring_summary: Random rotates `src` by an angle included in angle limits.
docstring_tokens: Random rotates src by an angle included in angle limits .
function: def random_rotate(src, angle_limits, zoom_in=False, zoom_out=False):
      """Random rotates `src` by an angle included in angle limits.
  
      Parameters
      ----------
      src : NDArray
          Input image (format CHW) or batch of images (format NCHW),
          in both case is required a float32 data type.
      angle_limits: tuple
          Tuple of 2 elements containing the upper and lower limit
          for rotation angles in degree.
      zoom_in: bool
          If True input image(s) will be zoomed in a way so that no padding
          will be shown in the output result.
      zoom_out: bool
          If True input image(s) will be zoomed in a way so that the whole
          original image will be contained in the output result.
      Returns
      -------
      NDArray
          An `NDArray` containing the rotated image(s).
      """
      if src.ndim == 3:
          rotation_degrees = np.random.uniform(*angle_limits)
      else:
          n = src.shape[0]
          rotation_degrees = nd.array(np.random.uniform(
              *angle_limits,
              size=n
          ))
      return imrotate(src, rotation_degrees,
                      zoom_in=zoom_in, zoom_out=zoom_out)
function_tokens: def random_rotate ( src , angle_limits , zoom_in = False , zoom_out = False ) : if src . ndim == 3 : rotation_degrees = np . random . uniform ( * angle_limits ) else : n = src . shape [ 0 ] rotation_degrees = nd . array ( np . random . uniform ( * angle_limits , size = n ) ) return imrotate ( src , rotation_degrees , zoom_in = zoom_in , zoom_out = zoom_out )