def extract_params(source):
funcdef = find_funcdef(source)<EOL>params = []<EOL>for node in ast.walk(funcdef.args):<EOL><INDENT>if isinstance(node, ast.arg):<EOL><INDENT>if node.arg not in params:<EOL><INDENT>params.append(node.arg)<EOL><DEDENT><DEDENT><DEDENT>return params<EOL>
Extract parameters from a function definition