<｜begin▁of▁sentence｜>### Instruction:
Given two Rectangle objects with identical position and size, can you check if they are considered equal using Rectangle's __eq__ method?
### Response:
from matplotlib.patches import Rectangle

# Define two Rectangle objects with the same dimensions
rect1 = Rectangle((1, 2), 4, 5)
rect2 = Rectangle((1, 2), 4, 5)

# Use the __eq__ method to check if they are equal
are_equal = rect1 == rect2

# Print the result
print(f'The rectangles are equal: {are_equal}')
<|EOT|>
