code: def test_run_e2e_partition_selection_spark(self):
      import pyspark
  
      conf = pyspark.SparkConf()
      sc = pyspark.SparkContext.getOrCreate(conf=conf)
      input = sc.parallelize(list(range(10)))
  
      output = self.run_e2e_private_partition_selection_large_budget(
          input, pipeline_dp.SparkRDDBackend(sc)
      )
  
      self.assertLen(collect_to_container(), 5)
  
imports: import sys
  import unittest
  from typing import List, Optional, Tuple
  from unittest.mock import patch
  import numpy
  import apache_beam
  import apache_beam.testing.test_pipeline
  import apache_beam.testing.util
  import pydp.algorithms.partition_selection
  from absl.testing import absltest
  from absl.testing import parameterized
  import pipeline_dp
  from pipeline_dp import aggregate_params
  from pipeline_dp import budget_accounting
  from pipeline_dp import dp_computations
  from pipeline_dp.budget_accounting import NaiveBudgetAccountant
  from pipeline_dp.pipeline_backend import PipelineBackend
  from pipeline_dp.pipeline_functions import collect_to_container
  from pipeline_dp.report_generator import ReportGenerator
label_desc: Use image node_id 35 for calling the DpEngineTest obj's underlying member method code with example usage: obj.test_run_e2e_partition_selection_spark() without return types