code: def _multiple_replace(text, search_replace_dict):
      
      # Create a regular expression from all of the dictionary keys
      regex = re.compile("|".join(map(re.escape, search_replace_dict.keys())))
  
      # For each match, look up the corresponding value in the dictionary
      return regex.sub(lambda match: search_replace_dict[match.group(0)], text)
docs: Replace multiple things at once in a text.
  
      Parameters
      ----------
      text : str
      search_replace_dict : dict
  
      Returns
      -------
      replaced_text : str
  
      Examples
      --------
      >>> d = {'a': 'b', 'b': 'c', 'c': 'd', 'd': 'e'}
      >>> _multiple_replace('abcdefghijklm', d)
      'bcdeefghijklm'