code: def replace_stopwords(
      s: TextSeries, symbol: str, stopwords: Optional[Set[str]] = None
  ) -> TextSeries:
      """
      Replace all instances of `words` with symbol.
  
      By default uses NLTK's english stopwords of 179 words.
  
      Parameters
      ----------
      s : :class:`texthero._types.TextSeries`
  
      symbol: str
          Character(s) to replace words with.
  
      stopwords : Set[str], optional, default=None
          Set of stopwords string to remove. If not passed,
          by default uses NLTK English stopwords.
  
      Examples
      --------
      >>> import texthero as hero
      >>> import pandas as pd
      >>> s = pd.Series("the book of the jungle")
      >>> hero.replace_stopwords(s, "X")
      0    X book X X jungle
      dtype: object
  
      """
  
      if stopwords is None:
          from texthero import stopwords as _stopwords
  
          stopwords = _stopwords.DEFAULT
      return s.apply(_replace_stopwords, args=(stopwords, symbol))
  
imports: from gensim.models.phrases import Phrases
  import re
  import string
  from typing import Optional, Set
  import unicodedata
  import numpy
  import pandas
  from texthero._types import TokenSeries, TextSeries, InputSeries
  from typing import List, Callable, Union
  import warnings
label_desc: Use image node_id 11 for calling a global function with example usage: replace_stopwords(s, symbol, stopwords) and returns: s