class_docstr: TextStats contains following basic information:
code: def char_count(self, value: Dict[str, int]):
      if type(value) != dict:
          raise InvalidTypeError("char_count", type(value), "<dict>")
  
      for key, count in value.items():
          if type(key) != int:
              raise InvalidTypeError(
                  "char_count: key", type(key), "<int>"
              )
          if type(count) != int:
              raise InvalidTypeError(
                  "char_count: count", type(count), "<int>"
              )
      self._char_count = value
  
imports: from typing import Dict, Optional, Tuple
  from xai.data.abstract_stats import AbstractStats
  from xai.data.constants import STATSKEY
  from xai.data.exceptions import InvalidTypeError, InvalidSizeError
label_desc: Use image node_id 9 for calling the TextStats obj's underlying member method code with example usage: obj.char_count(value) without return types