Return True if the file descriptor fd is open and connected to a tty(-like) device, else False.
os.isatty(fd, /)