def format(self, top_indent):
        s = ""
        if self.section_exists("Summary"):
            sec_text = self.get_section("Summary").text
            if sec_text.strip():
                s += with_bounding_newlines(sec_text, nleading=0, ntrailing=1)

        for _, section in islice(self.sections.items(), 1, None):
            if section is None:
                continue
            sec_body = indent_docstr(section.text, section.section_indent, n=0)
            sec_text = self._format_section_text(section.heading, sec_body)
            s += with_bounding_newlines(sec_text, nleading=1, ntrailing=1)

        if self.trailing_newlines:
            s = with_bounding_newlines(s, ntrailing=self.trailing_newlines)
        s = indent_docstr(s, top_indent)

        return s
Args:
dataset/ETHPy150Open KristoforMaynard/SublimeAutoDocstring/docstring_styles.py/NapoleonDocstring.format