<｜begin▁of▁sentence｜>### Instruction:
Given a Rectangle class with a __bool__ method that returns True if both width and height are positive, can you write a code fragment to instantiate a Rectangle object and print whether the Rectangle is valid based on its dimensions?
### Response:
from Rectangle import Rectangle

# Assume we have a Rectangle class with __bool__ method implemented
class Rectangle:
    def __init__(self, width, height):
        self.width = width
        self.height = height

    def __bool__(self):
        return self.width > 0 and self.height > 0

# Example usage
rect = Rectangle(10, 5)
if rect:
    print('Rectangle is valid')
else:
    print('Rectangle is not valid')
<|EOT|>
