code: def set_phone_prob(self, prob):
      if hasattr(self.g2p, "phoneme_probability"):
          self.g2p.phoneme_probability = prob
      try:
          yield
      finally:
          if hasattr(self.g2p, "phoneme_probability"):
              self.g2p.phoneme_probability = self.phoneme_probability
  
imports: import itertools
  import string
  from abc import ABC, abstractmethod
  from contextlib import contextmanager
  from typing import List, Optional
  from nemo.collections.common.tokenizers.text_to_speech.ipa_lexicon import get_grapheme_character_set, get_ipa_punctuation_list, validate_locale
  from nemo.collections.common.tokenizers.text_to_speech.tokenizer_utils import any_locale_text_preprocessing, chinese_text_preprocessing, english_text_preprocessing, french_text_preprocessing, italian_text_preprocessing, spanish_text_preprocessing
  from nemo.utils import logging
  from nemo.utils.decorators import experimental
label_desc: Use image node_id 4 for calling the IPATokenizer obj's underlying member method code with example usage: obj.set_phone_prob(prob) without return types