code: def remove_special_characters(text, remove_digits=True):
      """lambda fn for removing special char"""
      pattern = r"[^a-zA-Z0-9\s]"
      text = re.sub(pattern, "", text)
      return text
  
imports: import re
  import os
  import pickle
  import urllib
  import tarfile
  import numpy
  import pandas
  import nltk
  from nltk.stem import PorterStemmer
  from nltk.tokenize.toktok import ToktokTokenizer
  from gensim.models.keyedvectors import KeyedVectors
  from sklearn.model_selection import train_test_split
  from bs4 import BeautifulSoup
label_desc: Use image node_id 7 for calling a global function with example usage: remove_special_characters(text, remove_digits) and returns: text