def is_(self, other):
        # use something other than None to be clearer
        return self._id is getattr(
            other, '_id', Ellipsis) and self._id is not None
More flexible, faster check like ``is`` but that works through views
dataset/ETHPy150Open pydata/pandas/pandas/indexes/base.py/Index.is_