def __le__(self, other):
    if (not isinstance(other, FrozenTrial)):
        return NotImplemented
    return (self.number <= other.number)
def __le__(self, other):
    if (not isinstance(other, FrozenTrial)):
        return NotImplemented
    return (self.number <= other.number)