def detect_relation_types(self, str_relation: str) -> Tuple[str, List[str]]:
        """
        Detect relation types.

        Args:
            str_relation: relation in string format

        """
        relation_direction = self.judge_direction(str_relation)
        relation_type = self.relation_type_pattern.search(str_relation)
        if relation_type is None or relation_type.group("relation_type") is None:
            return relation_direction, []
        relation_types = [
            t.strip().strip("!")
            for t in relation_type.group("relation_type").split("|")
        ]
        return relation_direction, relation_types

        Detect relation types.

        Args:
            str_relation: relation in string format

        
llama-index-integrations/graph_stores/llama-index-graph-stores-neo4j/llama_index/graph_stores/neo4j/cypher_corrector.py