docstr: Replace emoji markup with corresponding unicode characters.
  
  Args:
      text (str): A string with emojis codes, e.g. "Hello :smiley:!"
  
  Returns:
      str: A string with emoji codes replaces with actual emoji.
docstr_tok: ["Replace","emoji","markup","with","corresponding","unicode","characters",".","Args",":","text","(","str",")",":","A","string","with","emojis","codes",",","e.g",".","``","Hello",":","smiley",":","!","''","Returns",":","str",":","A","string","with","emoji","codes","replaces","with","actual","emoji","."]
code: def replace(cls, text: str) -> str:
      """Replace emoji markup with corresponding unicode characters.
  
      Args:
          text (str): A string with emojis codes, e.g. "Hello :smiley:!"
  
      Returns:
          str: A string with emoji codes replaces with actual emoji.
      """
      return _emoji_replace(text)
  
file_path: rich/rich/emoji.py
imports: import sys
  from typing import TYPE_CHECKING, Optional, Union
  from .jupyter import JupyterMixin
  from .segment import Segment
  from .style import Style
  from ._emoji_codes import EMOJI
  from ._emoji_replace import _emoji_replace
label_desc: Use image node_id 2 for calling the Emoji obj's underlying member method code with example usage: obj.replace(cls, text) and returns: _emoji_replace