code: def sparkSupportsJobCancelling(self):
      return hasattr(self.sc.parallelize([1]), "collectWithJobGroup")
  
imports: import contextlib
  import logging
  import os
  import shutil
  import tempfile
  import time
  import timeit
  import unittest
  import numpy
  from pyspark.sql import SparkSession
  from io import StringIO
  from hyperopt import SparkTrials, anneal, base, fmin, hp, rand
  from hyperopt.base import STATUS_OK
  from hyperopt.tests.unit.test_fmin import test_quadratic1_tpe
  from py4j.clientserver import ClientServer
label_desc: Use image node_id 3 for calling the FMinTestCase obj's underlying member method code with example usage: obj.sparkSupportsJobCancelling() and returns: hasattr