code: def test_fails_to_create_when_both_remote_and_channel_builder_are_specified(
      self,
  ):
      with self.assertRaises(ValueError):
          (
              RemoteSparkSession.builder.channelBuilder(
                  CustomChannelBuilder("sc://localhost")
              )
              .remote("sc://localhost")
              .getOrCreate()
          )
  
imports: import threading
  import time
  import unittest
  from typing import Optional
  from pyspark import InheritableThread, inheritable_thread_target
  from pyspark.sql.connect.client import ChannelBuilder
  from pyspark.sql.connect.session import SparkSession
  from pyspark.testing.connectutils import should_test_connect
label_desc: Use image node_id 2 for calling the SparkSessionTestCase obj's underlying member method code with example usage: obj.test_fails_to_create_when_both_remote_and_channel_builder_are_specified() without return types