code: def test_custom_pipeline(_nltk, text_data):
      def shout(text_docs_bow):
          return [
              [word.upper() for word in doc] for doc in text_docs_bow
          ]
  
      assert (
          to_list(
              preprocess_texts(
                  text_data["test_list_custom"],
                  custom_pipeline=["tokenize", shout],
              )
          )
          == text_data["answer_key_custom"]
      ), "Output did not correctly incorporate custom function into preprocessing pipeline"
  
file_path: data-describe/tests/test_text_preprocessing.py
imports: import pytest
  import pandas
  from data_describe.text.text_preprocessing import tokenize, to_lower, remove_digits, remove_punct, remove_single_char_and_spaces, remove_stopwords, preprocess_texts, to_list, bag_of_words_to_docs, create_doc_term_matrix, create_tfidf_matrix, ngram_freq
label_desc: Use image node_id 12 for calling a global function with example usage: test_custom_pipeline(_nltk, text_data) and returns: unknown