code: def test_clean_names_method_chain(spark_df):
      """Tests clean names function in a method chain call."""
      spark_df = spark_df.clean_names()
      expected_columns = [
          "a",
          "bell_chart",
          "decorated_elephant",
          "animals@#$%^",
          "cities",
      ]
      assert set(spark_df.columns) == set(expected_columns)
  
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 1 for calling a global function with example usage: test_clean_names_method_chain(spark_df) without return types