def format(self, object, context, maxlevels, level):
        if isinstance(object, str):
            if ' ' in object:
                return repr(object), 1, 0
            else:
                return object, 0, 0
        else:
            return pprint.PrettyPrinter.format(
                self, object, context, maxlevels, level)
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/test/test_pprint.py/DottedPrettyPrinter.format/original