code: def test_deferred_error():
      # Arrange
  
      # Act
      thing = _util.DeferredError.new(ValueError("Some error text"))
  
      # Assert
      with pytest.raises(ValueError):
          thing.some_attr
  
file_path: pillow/Tests/test_util.py
imports: from __future__ import annotations
  import pytest
  from PIL import _util
label_desc: Use image node_id 6 for calling a global function with example usage: test_deferred_error() without return types