class_docstr: Coarse grained mask for a given tensor, here tensor could be weights,
  input tensor, or output tensor
class_docstr_tok: ["Coarse","grained","mask","for","a","given","tensor",",","here","tensor","could","be","weights",",","input","tensor",",","or","output","tensor"]
code: def __eq__(self, other):
      assert isinstance(other, CoarseMask)
      if len(self.mask_index) != len(other.mask_index):
          return False
      for i in range(len(self.mask_index)):
          if not self.eq_on_dim(other, i):
              return False
      return True
  
imports: import logging
  import torch
label_desc: Use image node_id 7 for calling the CoarseMask obj's underlying member method code with example usage: obj.__eq__(other) and returns: True, False, False