<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def tty_stream(self):
 """ Whether or not our stream is a tty """

        return hasattr(self.options.stream, "isatty") \
            and self.options.stream.isatty()