code: def _GetTermSizeWindows():
      """Returns the Windows terminal x and y dimensions."""
      # pylint:disable=g-import-not-at-top
      import struct
  
      # pylint: disable=g-import-not-at-top
      from ctypes import create_string_buffer
  
      # pylint:disable=g-import-not-at-top
      from ctypes import windll
  
      # stdin handle is -10
      # stdout handle is -11
      # stderr handle is -12
  
      h = windll.kernel32.GetStdHandle(-12)
      csbi = create_string_buffer(22)
      if not windll.kernel32.GetConsoleScreenBufferInfo(h, csbi):
          return None
      (
          unused_bufx,
          unused_bufy,
          unused_curx,
          unused_cury,
          unused_wattr,
          left,
          top,
          right,
          bottom,
          unused_maxx,
          unused_maxy,
      ) = struct.unpack(b"hhhhHhhhhhh", csbi.raw)
      x = right - left + 1
      y = bottom - top + 1
      return (x, y)
  
file_path: python-fire/fire/console/console_attr_os.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import unicode_literals
  import os
  import sys
  from fire.console import encoding
label_desc: Use image node_id 3 for calling a global function with example usage: _GetTermSizeWindows() and returns: x,  y, None