import ast


def check_instance(node):
	"""
	Checks, if the node is relevant for the control flow
	"""
	if (isinstance(node, ast.If)
		or isinstance(node, ast.For) 
		or isinstance(node, ast.While)):
		# relevant type
		return True
	else:
		return False