old_contents: #!/usr/bin/env python
  # encoding: utf-8
  
  from wand.image import Image
  
  def rotate_image(filename, degrees):
      """Rotates filename degrees degrees."""
      with Image(filename=filename) as image:
          with image.clone() as rotated:
              rotated.rotate(degrees)
              rotated.save(filename=filename)
  
  def main():
      """TODO: docstring"""
      rotate_image('test.pdf', 180)
  
  if __name__ == '__main__':
      main()
  
new_contents: #!/usr/bin/env python
  # encoding: utf-8
  
  from wand.image import Image
  
  def rotate_image(filename, degrees):
      """Rotates filename degrees degrees."""
      with Image(filename=filename) as image:
          with image.clone() as rotated:
              rotated.rotate(degrees)
              rotated.save(filename=filename)
  
  
  def page_is_empty(filename):
      """Check if page is empty.
  
      Return true if it is, otherwise false.
      """
      pass
  
  
  def main():
      """TODO: docstring"""
      rotate_image('test.pdf', 180)
  
  
  if __name__ == '__main__':
      main()
  
subject: Add page_is_empty() stub