docstr: Are we generating the same interpretation
  of the image as Imagemagick is?
docstr_tok: ["Are","we","generating","the","same","interpretation","of","the","image","as","Imagemagick","is","?"]
code: def test_12bit_rawmode(self):
      """Are we generating the same interpretation
      of the image as Imagemagick is?"""
  
      with Image.open("Tests/images/12bit.cropped.tif") as im:
          # to make the target --
          # convert 12bit.cropped.tif -depth 16 tmp.tif
          # convert tmp.tif -evaluate RightShift 4 12in16bit2.tif
          # imagemagick will auto scale so that a 12bit FFF is 16bit FFF0,
          # so we need to unshift so that the integer values are the same.
  
          assert_image_equal_tofile(im, "Tests/images/12in16bit.tif")
  
imports: import os
  from io import BytesIO
  import pytest
  from PIL import Image, ImageFile, TiffImagePlugin
  from PIL.TiffImagePlugin import RESOLUTION_UNIT, X_RESOLUTION, Y_RESOLUTION
  from .helper import assert_image_equal, assert_image_equal_tofile, assert_image_similar, assert_image_similar_tofile, hopper, is_pypy, is_win32
label_desc: Use image node_id 21 for calling the TestFileTiff obj's underlying member method code with example usage: obj.test_12bit_rawmode() without return types