code: def _format_text(self, text):
      for pattern, repl in self._text_subs:
          text = pattern.sub(repl, text)
      return text
  
imports: import contextlib
  import functools
  import json
  import os
  import re
  import click
  from click import shell_completion
  import guild
  from guild import python_util
label_desc: Use image node_id 2 for calling the HelpFormatter obj's underlying member method code with example usage: obj._format_text(text) and returns: text