code: def test_deferred_error():
      # Arrange
  
      # Act
      thing = _util.deferred_error(ValueError("Some error text"))
  
      # Assert
      with pytest.raises(ValueError):
          thing.some_attr
  
imports: 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