class_docstr: Keep track of what's going on in the binarizer
code: def num_replaced(self) -> int:
      if self.replaced is None:
          return 0
      return sum(self.replaced.values())
  
imports: import logging
  import os
  import typing
  from abc import ABC, abstractmethod
  from collections import Counter
  from dataclasses import dataclass
  from multiprocessing import Pool
  import torch
  from fairseq.data import Dictionary, indexed_dataset
  from fairseq.file_chunker_utils import Chunker, find_offsets
  from fairseq.file_io import PathManager
  from fairseq.tokenizer import tokenize_line
label_desc: Use image node_id 1 for calling the BinarizeSummary obj's underlying member method code with example usage: obj.num_replaced() and returns: sum, int