code: def test_profiler_disabled(self):
      sc = SparkContext(
          conf=SparkConf()
          .set("spark.python.profile", "false")
          .set("spark.python.profile.memory", "false")
      )
      try:
          with self.assertRaises(PySparkRuntimeError) as pe:
              sc.show_profiles()
          self.check_error(
              exception=pe.exception,
              error_class="INCORRECT_CONF_FOR_PROFILE",
              message_parameters={},
          )
  
          with self.assertRaises(PySparkRuntimeError) as pe:
              sc.dump_profiles("/tmp/abc")
          self.check_error(
              exception=pe.exception,
              error_class="INCORRECT_CONF_FOR_PROFILE",
              message_parameters={},
          )
      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 1 for calling the ProfilerTests2 obj's underlying member method code with example usage: obj.test_profiler_disabled() without return types