code: def test_clean_names_case_type_invalid(spark_df):
      """Tests case_type parameter when it is invalid."""
      with pytest.raises(
          JanitorError, match=r"case_type must be one of:"
      ):
          spark_df = spark_df.clean_names(case_type="foo")
  
file_path: pyjanitor/tests/spark/functions/test_clean_names_spark.py
imports: import pytest
  from helpers import running_on_ci
  from janitor.errors import JanitorError
  import janitor.spark
label_desc: Use image node_id 5 for calling a global function with example usage: test_clean_names_case_type_invalid(spark_df) without return types