def METHOD_NAME(fd):
    try:
        import fcntl
        import termios
        cr = struct.unpack(
            "hh", fcntl.ioctl(
                fd, termios.TIOCGWINSZ, "1234"))
    except Exception:
        return
    return cr