def __eq__(self, other):
        return (isinstance(other, self.__class__) and
                other.package == self.package)
def local_rank(self) -> int:
        return 0 if self._local_rank is None else self._local_rank