parameters: (self, s, formatter='minimal')
return_statement: return output
docstring: Format the given string using the given formatter.
docstring_summary: Format the given string using the given formatter.
docstring_tokens: Format the given string using the given formatter .
function: def format_string(self, s, formatter='minimal'):
          """Format the given string using the given formatter."""
          if not callable(formatter):
              formatter = self._formatter_for_name(formatter)
          if formatter is None:
              output = s
          else:
              output = formatter(s)
          return output
function_tokens: def format_string ( self , s , formatter = 'minimal' ) : if not callable ( formatter ) : formatter = self . _formatter_for_name ( formatter ) if formatter is None : output = s else : output = formatter ( s ) return output