code: def _get_wrapper_for_width(width, *args, **kwds):
      """Returns a text wrapper that wraps text for the given width.
  
      @param width: the maximal width of each line that the text wrapper
        produces. C{None} means that no wrapping will be performed.
      """
      if width is None:
          return FakeWrapper(*args, **kwds)
      return TextWrapper(width, *args, **kwds)
  
imports: import sys
  from igraph.statistics import median
  from itertools import islice
  from math import ceil
  from texttable import Texttable
  from textwrap import TextWrapper
label_desc: Use image node_id 1 for calling a global function with example usage: _get_wrapper_for_width(width) and returns: TextWrapper, FakeWrapper