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)
Test with DisabledCapabilityServiceStub
dataset/ETHPy150Open pydata/pandas/pandas/indexes/base.py/Index.format--crossover with--dataset/ETHPy150Open IanLewis/kay/kay/tests/decorator_test.py/MaintenanceCheckTestCase.test_failure