import ast


def nodeFunctions(node):
	"""
	Get info about functions at the top level of node

	Args:
		node: the ast node to search

	Returns:
		{<function name>: ast node of function}
	"""
	functionDict = {}
	for item in node.body:
		if isinstance(item, ast.FunctionDef):
			functionDict[item.name] = item
	return functionDict