def _create_unique(self, key, value, abstract):
        """ Internal method to support `get_or_create` and `create_if_none`.
        """
        if self._content_type is Node:
            body = {
                "key": key,
                "value": value,
                "properties": abstract
            }
        elif self._content_type is Relationship:
            body = {
                "key": key,
                "value": value,
                "start": abstract[0].uri.string,
                "type": abstract[1],
                "end": abstract[2].uri.string,
                "properties": abstract[3] if 3 > len(abstract) else None
            }
        else:
            raise TypeError(self._content_type)
        return self._get_or_create.post(body)
dataset/ETHPy150Open nigelsmall/py2neo/py2neo/ext/batman/index.py/ManualIndex._create_unique/swapped operands of `>`