code: def dedent(text):
      """Equivalent of textwrap.dedent that ignores unindented first line.
  
      This means it will still dedent strings like:
      '''foo
      is a bar
      '''
  
      For use in wrap_paragraphs.
      """
  
      if text.startswith("\n"):
          # text starts with blank line, don't ignore the first line
          return textwrap.dedent(text)
  
      # split first line
      splits = text.split("\n", 1)
      if len(splits) == 1:
          # only one line
          return textwrap.dedent(text)
  
      first, rest = splits
      # dedent everything but the first line
      rest = textwrap.dedent(rest)
      return "\n".join([first, rest])
  
file_path: catboost/contrib/python/ipython-genutils/py3/ipython_genutils/text.py
imports: import os
  import re
  import sys
  import textwrap
  from string import Formatter
label_desc: Use image node_id 2 for calling a global function with example usage: dedent(text) and returns: str, textwrap, textwrap