code: def test_return_dataframe_new_column_names_is_a_list_len_unequal(
      returns_frame_1,
  ):
      """
      Raise error if text processing returns a dataframe,
      `new_column_names` is not None, and the length of
      `new_column_names` is not equal to the length of the
      new dataframe's columns.
      """
  
      with pytest.raises(ValueError):
          returns_frame_1.process_text(
              column_name="ticker",
              new_column_names=["header1", "header2"],
              merge_frame=True,
              string_function="split",
              expand=True,
              pat=" ",
          )
  
imports: import numpy
  import pandas
  import pytest
  from pandas.testing import assert_frame_equal
label_desc: Use image node_id 24 for calling a global function with example usage: test_return_dataframe_new_column_names_is_a_list_len_unequal(returns_frame_1) without return types