def _index(self, content_type, index):
        from py2neo.ext.batman import ManualIndexManager, ManualIndex
        if isinstance(index, ManualIndex):
            if content_type == index._content_type:
                return index
            else:
                raise TypeError("Index is not for {0}s".format(content_type))
        else:
            return ManualIndexManager(self.graph).get_or_create_index(content_type, str(index))
Check config option to show missing code.
dataset/ETHPy150Open nigelsmall/py2neo/py2neo/ext/batman/batch.py/ManualIndexWriteBatch._index--crossover with--dataset/ETHPy150Open pytest-dev/pytest-bdd/pytest_bdd/generation.py/cmdline_main