parameters: (ast_node)
return_statement: return source_code
docstring: Transforms ast node into source code.
docstring_summary: Transforms ast node into source code.
docstring_tokens: Transforms ast node into source code .
function: def ast_to_source_code(ast_node):
      """
      Transforms ast node into source code.
      """
      if not isinstance(ast_node, (gast.AST, ast.AST)):
          raise TypeError(
              "Type of ast_root should be gast.AST or ast.AST, but received %s." %
              type(ast_node))
      if isinstance(ast_node, gast.AST):
          ast_node = gast.gast_to_ast(ast_node)
      source_code = astor.to_source(ast_node)
      return source_code
function_tokens: def ast_to_source_code ( ast_node ) : if not isinstance ( ast_node , ( gast . AST , ast . AST ) ) : raise TypeError ( "Type of ast_root should be gast.AST or ast.AST, but received %s." % type ( ast_node ) ) if isinstance ( ast_node , gast . AST ) : ast_node = gast . gast_to_ast ( ast_node ) source_code = astor . to_source ( ast_node ) return source_code