code: def visit_functiondef(self, node):
          
          decorate = node.decorators.accept(self) if node.decorators else ""
          docs = self._docs_dedent(node.doc) if node.doc else ""
          trailer = ":"
          if node.returns:
              return_annotation = "->" + node.returns.as_string()
              trailer = return_annotation + ":"
          def_format = "\n%sdef %s(%s)%s%s\n%s"
          return def_format % (
              decorate,
              node.name,
              node.args.accept(self),
              trailer,
              docs,
              self._stmt_list(node.body),
          )
docs: return an astroid.Function node as string