docstr: Submit and test a single script file
docstr_tok: ["Submit","and","test","a","single","script","file"]
code: def test_single_script(self):
      """Submit and test a single script file"""
      script = self.createTempFile(
          "test.py",
          """
              |from pyspark import SparkContext
              |
              |sc = SparkContext()
              |print(sc.parallelize([1, 2, 3]).map(lambda x: x * 2).collect())
              """,
      )
      proc = subprocess.Popen(
          self.sparkSubmit + [script], stdout=subprocess.PIPE
      )
      out, err = proc.communicate()
      self.assertEqual(0, proc.returncode)
      self.assertIn("[2, 4, 6]", out.decode("utf-8"))
  
imports: import os
  import re
  import shutil
  import subprocess
  import tempfile
  import unittest
  import zipfile
  from pyspark.testing.utils import SPARK_HOME
label_desc: Use image node_id 6 for calling the SparkSubmitTests obj's underlying member method code with example usage: obj.test_single_script() without return types