def __sanitize_identifier(self, identifier: str) -> str:
                """
                Sanitize SQL identifiers like table or column names.

                Args:
                    identifier: The identifier to sanitize

                Returns:
                    Sanitized identifier

                """
                # Remove any dangerous characters from the identifier
                # Only allow alphanumeric characters and underscores
                sanitized = "".join(c for c in identifier if c.isalnum() or c == "_")

                # Ensure the identifier is not empty after sanitization
                if not sanitized:
                    raise ValueError(f"Invalid identifier: {identifier}")

                return sanitized

                Sanitize SQL identifiers like table or column names.

                Args:
                    identifier: The identifier to sanitize

                Returns:
                    Sanitized identifier

                
llama-index-integrations/vector_stores/llama-index-vector-stores-deeplake/llama_index/vector_stores/deeplake/base.py