code: def check_text_and_text_file_name(text, text_file_name):
      if text is None and text_file_name is None:
          raise ValueError(
              f"Exactly one of parameters `text` and `text_file_name` should be provided whereas both parameters "
              f"are `None`."
          )
      if text is not None and text_file_name is not None:
          raise ValueError(
              f"Exactly one of parameters `text` and `text_file_name` has to be provided, whereas both parameters "
              f"are not `None`."
          )
      if text is not None:
          if not isinstance(text, str):
              raise ValueError(
                  f"Parameter `text` has to be of type `str`, whereas it belongs to type `{type(text)}`."
              )
  
imports: import json
  import os
  import warnings
  from collections import Counter
  from enum import Enum
  from pathlib import Path
  from typing import Dict, List, NewType, Optional, Union
  from nemo.collections.common.tokenizers.tokenizer_spec import TokenizerSpec
label_desc: Use image node_id 25 for calling the CharTokenizer obj's underlying member method code with example usage: obj.check_text_and_text_file_name(text, text_file_name) without return types