code: def check_special_token_id_getting(special_token, id_name):
      if special_token is None:
          token_param = id_name[:-3] + "_token"
          raise ValueError(
              f"Cannot return `{id_name}` since `{token_param}` is not set. To obtain `{id_name}` you need to pass "
              f"parameter `{token_param}` to `CharTokenizer` constructor."
          )
  
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 15 for calling the CharTokenizer obj's underlying member method code with example usage: obj.check_special_token_id_getting(special_token, id_name) without return types