def run(self, app, editor, args):
        cursor = editor.get_cursor()
        line = editor.get_line(cursor.y)
        line_data = line.get_data()
        if not helpers.starts(line_data.strip(), "def "):
            app.set_status("Current line isn't a function definition.")
            return False

        func_args = self.get_function_args(line_data)
        func_returns = self.get_function_returns(editor, cursor.y)
        docstring = self.get_docstring(func_args=func_args, func_returns=func_returns)

        indent = self.get_docstring_indent(line_data)
        indent = indent * self.app.config["editor"]["tab_width"] * " "
        self.insert_docstring(editor, cursor.y+1, indent, docstring)
INTEGRATION: receive several hosts at connection setup.
dataset/ETHPy150Open richrd/suplemon/suplemon/modules/autodocstring.py/AutoDocstring.run--crossover with--dataset/ETHPy150Open jplana/python-etcd/src/etcd/tests/integration/test_simple.py/TestClusterFunctions.test_reconnect_with_several_hosts_passed