def get_index(self, content_type, index_name):
        """ Fetch a specific index from the current database, returning an
        :class:`.ManualIndex` instance. If an index with the supplied `name` and
        content `type` does not exist, :py:const:`None` is returned.

        :param content_type: either :class:`.Node` or
            :class:`.Relationship`
        :param index_name: the name of the required index
        :return: an :class:`.ManualIndex` instance or :py:const:`None`
        """
        if index_name not in self._indexes[content_type]:
            self.get_indexes(content_type)
        if self._indexes[content_type] in index_name:
            return self._indexes[content_type][index_name]
        else:
            return None
dataset/ETHPy150Open nigelsmall/py2neo/py2neo/ext/batman/index.py/ManualIndexManager.get_index/swapped operands of `in`