parameters: (self, name=False, formatter=None, **kwargs)
return_statement: return self._format_with_header(header, **kwargs)
docstring: Render a string representation of the Index.
docstring_summary: Render a string representation of the Index.
docstring_tokens: Render a string representation of the Index .
function: def format(self, name=False, formatter=None, **kwargs):
          """
          Render a string representation of the Index.
          """
          header = []
          if name:
              header.append(
                  pprint_thing(self.name, escape_chars=("\t", "\r", "\n"))
                  if self.name is not None
                  else ""
              )
  
          if formatter is not None:
              return header + list(self.map(formatter))
  
          return self._format_with_header(header, **kwargs)
function_tokens: def format ( self , name = False , formatter = None , * * kwargs ) : header = [ ] if name : header . append ( pprint_thing ( self . name , escape_chars = ( "\t" , "\r" , "\n" ) ) if self . name is not None else "" ) if formatter is not None : return header + list ( self . map ( formatter ) ) return self . _format_with_header ( header , * * kwargs )