code: def test_invalid_key_value_setting(configured_arg_parser):
      args = configured_arg_parser.parse_args(
          [
              "--spark-session-config",
              "WRONG FORMAT",
              "b=2",
              "--master",
              "local[1]",
          ]
      )
      with pytest.raises(ValueError, match="key=value"):
          configure_spark(SparkSession.builder, args)
  
file_path: petastorm/petastorm/tests/test_spark_session_cli.py
imports: import argparse
  import pytest
  from pyspark.sql import SparkSession
  from petastorm.tools.spark_session_cli import add_configure_spark_arguments, configure_spark
label_desc: Use image node_id 6 for calling a global function with example usage: test_invalid_key_value_setting(configured_arg_parser) without return types