code: def test_clean_names_strip_underscores(spark_df, strip_underscores):
      """Tests strip_underscores parameter takes effect."""
      if strip_underscores in ["right", "r"]:
          spark_df = spark_df.selectExpr(
              *[f"`{col}` AS `{col}_`" for col in spark_df.columns]
          )
      elif strip_underscores in ["left", "l"]:
          spark_df = spark_df.selectExpr(
              *[f"`{col}` AS `_{col}`" for col in spark_df.columns]
          )
      elif strip_underscores in ["both", True]:
          spark_df = spark_df.selectExpr(
              *[f"`{col}` AS `_{col}_`" for col in spark_df.columns]
          )
  
      spark_df = spark_df.clean_names(
          strip_underscores=strip_underscores
      )
  
      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 7 for calling a global function with example usage: test_clean_names_strip_underscores(spark_df, strip_underscores) without return types