class_docstr: Efficiently estimates the Ray serialized size of a stream of items.
  
  For efficiency, this only samples a fraction of the added items for real
  Ray-serialization.
class_docstr_tok: ["Efficiently","estimates","the","Ray","serialized","size","of","a","stream","of","items",".","For","efficiency",",","this","only","samples","a","fraction","of","the","added","items","for","real","Ray-serialization","."]
code: def size_bytes(self) -> int:
      return int(self._running_mean.mean * self._count)
  
file_path: ray/python/ray/data/_internal/size_estimator.py
imports: from typing import Any, List
  import ray
  from ray import cloudpickle
label_desc: Use image node_id 4 for calling the SizeEstimator obj's underlying member method code with example usage: obj.size_bytes() and returns: int