code: def test_remove_punct(_nltk, text_data, tokenized_test_list_main):
      assert (
          to_list(remove_punct(tokenized_test_list_main))
          == text_data["answer_key_remove_punct"]
      ), "Output did not correctly remove punctuation inside of words from documents"
      assert (
          to_list(
              remove_punct(
                  tokenized_test_list_main,
                  remove_all=True,
                  replace_char="|",
              )
          )
          == text_data["answer_key_replace_all_punct_with_pipe"]
      ), "Output did not correctly replace all punctuation with the | character"
      assert (
          to_list(
              remove_punct(tokenized_test_list_main, remove_all=True)
          )
          == text_data["answer_key_remove_all_punct"]
      ), "Output did not correctly remove all punctuation from documents"
  
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 4 for calling a global function with example usage: test_remove_punct(_nltk, text_data, tokenized_test_list_main) without return types