code: def test_profiler_all_enabled(self):
      sc = SparkContext(
          conf=SparkConf()
          .set("spark.python.profile", "true")
          .set("spark.python.profile.memory", "true")
      )
      spark = SparkSession(sparkContext=sc)
  
      @udf("int")
      def plus_one(v):
          return v + 1
  
      try:
          with self.assertRaises(PySparkRuntimeError) as pe:
              spark.range(10).select(plus_one("id")).collect()
  
          self.check_error(
              exception=pe.exception,
              error_class="CANNOT_SET_TOGETHER",
              message_parameters={
                  "arg_list": "'spark.python.profile' and "
                  "'spark.python.profile.memory' configuration"
              },
          )
      finally:
          sc.stop()
  
imports: import os
  import sys
  import tempfile
  import unittest
  from io import StringIO
  from pyspark import SparkConf, SparkContext, BasicProfiler
  from pyspark.profiler import has_memory_profiler
  from pyspark.sql import SparkSession
  from pyspark.sql.functions import udf
  from pyspark.errors import PythonException, PySparkRuntimeError
  from pyspark.testing.utils import PySparkTestCase, PySparkErrorTestUtils
label_desc: Use image node_id 2 for calling the ProfilerTests2 obj's underlying member method code with example usage: obj.test_profiler_all_enabled() and returns: unknown