code: def test_sanity(self, tmp_path):
      filename = str(tmp_path / "temp.tif")
  
      hopper("RGB").save(filename)
  
      with Image.open(filename) as im:
          im.load()
      assert im.mode == "RGB"
      assert im.size == (128, 128)
      assert im.format == "TIFF"
  
      hopper("1").save(filename)
      with Image.open(filename):
          pass
  
      hopper("L").save(filename)
      with Image.open(filename):
          pass
  
      hopper("P").save(filename)
      with Image.open(filename):
          pass
  
      hopper("RGB").save(filename)
      with Image.open(filename):
          pass
  
      hopper("I").save(filename)
      with Image.open(filename):
          pass
  
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 1 for calling the TestFileTiff obj's underlying member method code with example usage: obj.test_sanity(tmp_path) without return types