code: def test_mp_offset():
      # This image has been manually hexedited to have an IFD offset of 10
      # in APP2 data, in contrast to normal 8
      with Image.open("Tests/images/sugarshack_ifd_offset.mpo") as im:
          mpinfo = im._getmp()
          assert mpinfo[45056] == b"0100"
          assert mpinfo[45057] == 2
  
imports: from io import BytesIO
  import pytest
  from PIL import Image
  from .helper import assert_image_similar, is_pypy, skip_unless_feature
label_desc: Use image node_id 12 for calling a global function with example usage: test_mp_offset() without return types