def METHOD_NAME(self, obj):
    if isinstance(obj, str):
        if '\n' in obj:
            out = '"""\n'
            with self.tab():
                for line in obj.strip().split('\n'):
                    line = line.strip()
                    out += self._line_with_tabs(line)
            out += self._line_with_tabs('"""', newline=False)
            return out
    return repr(obj)