code: def _max_width():
      try:
          return int(os.environ["COLUMNS"])
      except (KeyError, ValueError):
          return shutil.get_terminal_size()[0]
  
imports: import functools
  import logging
  import os
  import sys
  import shutil
  import typing
  import click
  from guild import ansi_util
  from guild import config
label_desc: Use image node_id 1 for calling a global function with example usage: _max_width() and returns: int, shutil