code: def test_return_dataframe_merge_is_not_None(returns_frame_1):
      """
      Test that the dataframe returned when `merge_frame` is not None
      is a merger of the original dataframe, and the dataframe
      generated from the text processing.
      """
      expected_output = pd.concat(
          [
              returns_frame_1,
              returns_frame_1["ticker"]
              .str.split(" ", expand=True)
              .add_prefix("new_"),
          ],
          axis="columns",
      )
      result = returns_frame_1.process_text(
          column_name="ticker",
          new_column_names="new_",
          merge_frame=True,
          string_function="split",
          expand=True,
          pat=" ",
      )
      assert_frame_equal(result, expected_output)
  
imports: import numpy
  import pandas
  import pytest
  from pandas.testing import assert_frame_equal
label_desc: Use image node_id 22 for calling a global function with example usage: test_return_dataframe_merge_is_not_None(returns_frame_1) without return types