code: def test_roundtrip():
      for mode in HOPPER:
          im = HOPPER[mode]
  
          def transpose(first, second):
              return im.transpose(first).transpose(second)
  
          assert_image_equal(
              im, transpose(FLIP_LEFT_RIGHT, FLIP_LEFT_RIGHT)
          )
          assert_image_equal(
              im, transpose(FLIP_TOP_BOTTOM, FLIP_TOP_BOTTOM)
          )
          assert_image_equal(im, transpose(ROTATE_90, ROTATE_270))
          assert_image_equal(im, transpose(ROTATE_180, ROTATE_180))
          assert_image_equal(
              im.transpose(TRANSPOSE),
              transpose(ROTATE_90, FLIP_TOP_BOTTOM),
          )
          assert_image_equal(
              im.transpose(TRANSPOSE),
              transpose(ROTATE_270, FLIP_LEFT_RIGHT),
          )
          assert_image_equal(
              im.transpose(TRANSVERSE),
              transpose(ROTATE_90, FLIP_LEFT_RIGHT),
          )
          assert_image_equal(
              im.transpose(TRANSVERSE),
              transpose(ROTATE_270, FLIP_TOP_BOTTOM),
          )
          assert_image_equal(
              im.transpose(TRANSVERSE), transpose(ROTATE_180, TRANSPOSE)
          )
  
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 8 for calling a global function with example usage: test_roundtrip() and returns: im