code: def __eq__(self, other):
      # Working around __eq__ on numpy arrays
      if self.__class__ == other.__class__:
          return (
              (self.doc_weighted_spans, self.weight_range)
              == (other.doc_weighted_spans, other.weight_range)
              and self.char_weights.shape == other.char_weights.shape
              and np.allclose(self.char_weights, other.char_weights)
          )
      return False
  
file_path: eli5/eli5/formatters/text_helpers.py
imports: from collections import Counter
  from typing import List, Optional
  import numpy
  from eli5.base import TargetExplanation, WeightedSpans, DocWeightedSpans
  from eli5.base_utils import attrs
  from eli5.utils import max_or_0
label_desc: Use image node_id 2 for calling the PreparedWeightedSpans obj's underlying member method code with example usage: obj.__eq__(other) and returns: False, unknown