code: def test_load_file_pathlib(self):
      if not _is_PY3:
          pytest.skip("pathlib not in stdlib in Python 2")
  
      from pathlib import Path
  
      filename = Path(IMAGES) / "sample.jpg"
      assert filename.exists()
  
      im_a = pyvips.Image.new_from_file(JPEG_FILE)
      im_b = pyvips.Image.new_from_file(filename)
  
      assert im_a.bands == im_b.bands
      assert im_a.width == im_b.width
      assert im_a.height == im_b.height
  
file_path: pyvips/tests/test_saveload.py
imports: import os
  import tempfile
  import pytest
  import pyvips
  from helpers import temp_filename, skip_if_no, _is_PY3, IMAGES, JPEG_FILE
label_desc: Use image node_id 5 for calling the TestSaveLoad obj's underlying member method code with example usage: obj.test_load_file_pathlib() without return types