creating a custom spark rdd in python,assert rdd.squares().collect() == rdd.map(lambda x: x * x).collect()