code: def set_grapheme_case(text: str, case: str = "upper") -> str:
      if case == "upper":
          text_new = text.upper()
      elif case == "lower":
          text_new = text.lower()
      elif case == "mixed":  # keep as-is, mix-cases
          text_new = text
      else:
          raise ValueError(
              f"Case <{case}> is not supported. Please specify either 'upper', 'lower', or 'mixed'."
          )
  
      return text_new
  
file_path: NeMo/nemo/collections/tts/g2p/utils.py
imports: import csv
  import os
  import re
  import string
  from typing import Dict, List, Union
label_desc: Use image node_id 5 for calling a global function with example usage: set_grapheme_case(text, case) and returns: text_new