Utils# validate_list_of_graph_data(func) Decorator function to check the validity of a list of GraphData.