code: def _get_terminal_size_windows():
      try:
          from ctypes import windll, create_string_buffer
  
          # stdin handle is -10
          # stdout handle is -11
          # stderr handle is -12
  
          h = windll.kernel32.GetStdHandle(-12)
          csbi = create_string_buffer(22)
          res = windll.kernel32.GetConsoleScreenBufferInfo(h, csbi)
      except (AttributeError, ValueError):
          return None
      if res:
          import struct
  
          (
              bufx,
              bufy,
              curx,
              cury,
              wattr,
              left,
              top,
              right,
              bottom,
              maxx,
              maxy,
          ) = struct.unpack("hhhhHhhhhhh", csbi.raw)
          sizex = right - left + 1
          sizey = bottom - top + 1
          return sizex, sizey
      else:
          return None
  
file_path: catboost/contrib/python/pandas/py2/pandas/io/formats/terminal.py
imports: from __future__ import print_function
  import os
  import shutil
  import subprocess
  from pandas.compat import PY3
label_desc: Use image node_id 3 for calling a global function with example usage: _get_terminal_size_windows() and returns: sizex,  sizey, None, None