class_docstr: TextStats contains following basic information:
code: def tfidf(self, value: Dict[str, int]):
      if type(value) != dict:
          raise InvalidTypeError("tfidf", type(value), "<dict>")
  
      for key, count in value.items():
          if type(key) != str:
              raise InvalidTypeError("tfidf: key", type(key), "<str>")
          if type(count) not in [float, int]:
              raise InvalidTypeError(
                  "tfidf: score", type(count), "<float> or <int>"
              )
      self._tfidf = 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 15 for calling the TextStats obj's underlying member method code with example usage: obj.tfidf(value) without return types