code: def test_merge_frame_type(test_returns_dataframe):
      """
      Raise TypeError if `merge_frame` type is not bool."""
      with pytest.raises(TypeError):
          test_returns_dataframe.process_text(
              column_name="text",
              new_column_names=["number", "newtext"],
              string_function="extractall",
              pat=r"([ab])?(\d)",
              merge_frame="True",
          )
  
imports: import numpy
  import pandas
  import pytest
  from pandas.testing import assert_frame_equal
label_desc: Use image node_id 8 for calling a global function with example usage: test_merge_frame_type(test_returns_dataframe) without return types