docstr: Compare this dictionary with another one.
docstr_tok: ["Compare","this","dictionary","with","another","one","."]
code: def __eq__(self, y):
      """
      Compare this dictionary with another one.
      """
      self.check_valid()
      y.check_valid()
      if len(self.id2word) != len(y):
          return False
      return all(self.id2word[i] == y[i] for i in range(len(y)))
  
file_path: pytext/pytext/data/xlm_dictionary.py
imports: import os
  from logging import getLogger
  import numpy
  import torch
  from pytext.utils.file_io import PathManager
label_desc: Use image node_id 5 for calling the Dictionary obj's underlying member method code with example usage: obj.__eq__(y) and returns: all, False