Creating a custom Spark RDD in Python,assert rdd.squares().collect() == rdd.map(lambda x: x * x).collect()