code: def replace_urls(s: TextSeries, symbol: str) -> TextSeries:
      r"""Replace all urls with the given symbol.
  
      Replace any urls from the given Pandas Series with the given symbol.
  
      Parameters
      ----------
      s : :class:`texthero._types.TextSeries`
  
      symbol : str
          The symbol to which the URL should be changed to.
  
      Examples
      --------
      >>> import texthero as hero
      >>> import pandas as pd
      >>> s = pd.Series("Go to: https://example.com")
      >>> hero.replace_urls(s, "<URL>")
      0    Go to: <URL>
      dtype: object
  
      See also
      --------
      :meth:`texthero.preprocessing.remove_urls`
  
      """
  
      pattern = r"http\S+"
  
      return s.str.replace(pattern, 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 25 for calling a global function with example usage: replace_urls(s, symbol) and returns: s