docstr: See base class for more information.
docstr_tok: ["See","base","class","for","more","information","."]
code: def encode(self, text):
      """See base class for more information."""
  
      text = self.text_preprocessing_func(text)
      g2p_text = self.g2p(text)  # TODO: handle infer
      return self.encode_from_g2p(g2p_text, text)
  
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 2 for calling the EnglishPhonemesTokenizer obj's underlying member method code with example usage: obj.encode(text) and returns: self