code: def test_rotate_270():
      def transpose(mode):
          im = HOPPER[mode]
          out = im.transpose(ROTATE_270)
          assert out.mode == mode
          assert out.size == im.size[::-1]
  
          x, y = im.size
          assert im.getpixel((1, 1)) == out.getpixel((y - 2, 1))
          assert im.getpixel((x - 2, 1)) == out.getpixel((y - 2, x - 2))
          assert im.getpixel((1, y - 2)) == out.getpixel((1, 1))
          assert im.getpixel((x - 2, y - 2)) == out.getpixel((1, x - 2))
  
      for mode in HOPPER:
          transpose(mode)
  
file_path: pillow-simd/Tests/test_image_transpose.py
imports: from PIL.Image import FLIP_LEFT_RIGHT, FLIP_TOP_BOTTOM, ROTATE_90, ROTATE_180, ROTATE_270, TRANSPOSE, TRANSVERSE
  from .None import helper
  from .helper import assert_image_equal
label_desc: Use image node_id 5 for calling a global function with example usage: test_rotate_270() without return types