def __eq__(self, other):
        return (isinstance(other, self.__class__) and
                other.package == self.package)
def __init__(self, masked_tokens=None, name='num_tokens', dtype=tf.int64):
    self._masked_tokens = masked_tokens or []
    super().__init__(name, dtype)