code: def _getdimensions():
      if py33:
          import shutil
  
          size = shutil.get_terminal_size()
          return size.lines, size.columns
      else:
          import termios, fcntl, struct
  
          call = fcntl.ioctl(1, termios.TIOCGWINSZ, "\000" * 8)
          height, width = struct.unpack("hhhh", call)[:2]
          return height, width
  
imports: import sys, os, unicodedata
  import py
  from py.builtin import text, bytes
label_desc: Use image node_id 1 for calling a global function with example usage: _getdimensions() and returns: size,  size, height,  width