docstr: Replace model's phoneme dictionary with a custom one
docstr_tok: ["Replace","model","'s","phoneme","dictionary","with","a","custom","one"]
code: def replace_dict(
      self,
      phoneme_dict: Union[
          str, pathlib.Path, Dict[str, List[List[str]]]
      ],
  ):
      """
      Replace model's phoneme dictionary with a custom one
      """
      self.phoneme_dict = self._parse_phoneme_dict(phoneme_dict)
  
imports: import pathlib
  import random
  import re
  from collections import defaultdict
  from typing import Callable, Dict, List, Optional, Set, Tuple, Union
  from nemo.collections.common.tokenizers.text_to_speech.ipa_lexicon import validate_locale
  from nemo.collections.common.tokenizers.text_to_speech.tokenizer_utils import LATIN_CHARS_ALL, any_locale_word_tokenize, english_word_tokenize, normalize_unicode_text
  from nemo.collections.tts.g2p.models.base import BaseG2p
  from nemo.collections.tts.g2p.utils import GRAPHEME_CASE_MIXED, GRAPHEME_CASE_UPPER, set_grapheme_case
  from nemo.utils import logging
  from nemo.utils.decorators import experimental
label_desc: Use image node_id 3 for calling the IpaG2p obj's underlying member method code with example usage: obj.replace_dict(phoneme_dict) without return types