code: def trim(s):
      r"""
      Trim something like a docstring to remove the whitespace that
      is common due to indentation and formatting.
  
      >>> trim("\n\tfoo = bar\n\t\tbar = baz\n")
      'foo = bar\n\tbar = baz'
      """
      return textwrap.dedent(s).strip()
  
imports: import re
  import itertools
  import textwrap
  import functools
  from pkg_resources.extern.jaraco.functools import compose, method_cache
  from pkg_resources.extern.jaraco.context import ExceptionTrap
label_desc: Use image node_id 5 for calling a global function with example usage: trim(s) and returns: textwrap