code: def test_with_underscores(self, tmp_path):
      kwargs = {
          "resolution_unit": "inch",
          "x_resolution": 72,
          "y_resolution": 36,
      }
      filename = str(tmp_path / "temp.tif")
      hopper("RGB").save(filename, **kwargs)
      with Image.open(filename) as im:
          # legacy interface
          assert im.tag[X_RESOLUTION][0][0] == 72
          assert im.tag[Y_RESOLUTION][0][0] == 36
  
          # v2 interface
          assert im.tag_v2[X_RESOLUTION] == 72
          assert im.tag_v2[Y_RESOLUTION] == 36
  
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 46 for calling the TestFileTiff obj's underlying member method code with example usage: obj.test_with_underscores(tmp_path) without return types