parameters: (img, angle, resample, expand, center, fill_value)
return_statement: return img.rotate(angle, resample, expand, center, fillcolor=fill_value)
docstring: Rotate the input PIL image by angle.
  
      Args:
          img (PIL image): Image to be rotated.
          angle (int or float): Rotation angle in degrees, counter-clockwise.
          resample (Union[Inter.NEAREST, Inter.BILINEAR, Inter.BICUBIC], optional): An optional resampling filter.
              If omitted, or if the image has mode "1" or "P", it is set to be Inter.NEAREST.
          expand (bool, optional):  Optional expansion flag. If set to True, expand the output
              image to make it large enough to hold the entire rotated image.
              If set to False or omitted, make the output image the same size as the input.
              Note that the expand flag assumes rotation around the center and no translation.
          center (tuple, optional): Optional center of rotation (a 2-tuple).
              Origin is the top left corner.
          fill_value (Union[int, tuple]): Optional fill color for the area outside the rotated image.
              If it is a 3-tuple, it is used for R, G, B channels respectively.
              If it is an integer, it is used for all RGB channels.
  
      Returns:
          img (PIL image), Rotated image.
  
      https://pillow.readthedocs.io/en/stable/reference/Image.html#PIL.Image.Image.rotate
docstring_summary: Rotate the input PIL image by angle.
docstring_tokens: Rotate the input PIL image by angle .
function: def rotate(img, angle, resample, expand, center, fill_value):
      """
      Rotate the input PIL image by angle.
  
      Args:
          img (PIL image): Image to be rotated.
          angle (int or float): Rotation angle in degrees, counter-clockwise.
          resample (Union[Inter.NEAREST, Inter.BILINEAR, Inter.BICUBIC], optional): An optional resampling filter.
              If omitted, or if the image has mode "1" or "P", it is set to be Inter.NEAREST.
          expand (bool, optional):  Optional expansion flag. If set to True, expand the output
              image to make it large enough to hold the entire rotated image.
              If set to False or omitted, make the output image the same size as the input.
              Note that the expand flag assumes rotation around the center and no translation.
          center (tuple, optional): Optional center of rotation (a 2-tuple).
              Origin is the top left corner.
          fill_value (Union[int, tuple]): Optional fill color for the area outside the rotated image.
              If it is a 3-tuple, it is used for R, G, B channels respectively.
              If it is an integer, it is used for all RGB channels.
  
      Returns:
          img (PIL image), Rotated image.
  
      https://pillow.readthedocs.io/en/stable/reference/Image.html#PIL.Image.Image.rotate
      """
      if not is_pil(img):
          raise TypeError(augment_error_message.format(type(img)))
  
      if isinstance(fill_value, int):
          fill_value = tuple([fill_value] * 3)
  
      return img.rotate(angle, resample, expand, center, fillcolor=fill_value)
function_tokens: def rotate ( img , angle , resample , expand , center , fill_value ) : if not is_pil ( img ) : raise TypeError ( augment_error_message . format ( type ( img ) ) ) if isinstance ( fill_value , int ) : fill_value = tuple ( [ fill_value ] * 3 ) return img . rotate ( angle , resample , expand , center , fillcolor = fill_value )