code: def get_terminal_size(
      default: Tuple[int, int] = (80, 24)
  ) -> Tuple[int, int]:
      columns, lines = default
      for fd in range(
          0, 3
      ):  # First in order 0=Std In, 1=Std Out, 2=Std Error
          try:
              columns, lines = os.get_terminal_size(fd)
          except OSError:
              continue
          break
      return columns, lines
  
file_path: norfair/norfair/utils.py
imports: import os
  from functools import lru_cache
  from logging import warn
  from typing import Sequence, Tuple
  import numpy
  from rich import print
  from rich.console import Console
  from rich.table import Table
label_desc: Use image node_id 4 for calling a global function with example usage: get_terminal_size(default) and returns: columns,  lines