class_docstr: Interact with Neo4j.
  
  Performs a connection to Neo4j and runs the query.
  
  :param neo4j_conn_id: Reference to :ref:`Neo4j connection id <howto/connection:neo4j>`.
class_docstr_tok: ["Interact","with","Neo4j",".","Performs","a","connection","to","Neo4j","and","runs","the","query",".",":","param","neo4j_conn_id",":","Reference","to",":","ref",":","`","Neo4j","connection","id","<","howto\/connection",":","neo4j",">","`","."]
docstr: Function to determine that relevant driver based on extras.
  
  :param conn: Connection object.
  :param encrypted: boolean if encrypted connection or not.
  :param uri: uri string for connection.
  :return: Driver
docstr_tok: ["Function","to","determine","that","relevant","driver","based","on","extras",".",":","param","conn",":","Connection","object",".",":","param","encrypted",":","boolean","if","encrypted","connection","or","not",".",":","param","uri",":","uri","string","for","connection",".",":","return",":","Driver"]
code: def get_client(
      self, conn: Connection, encrypted: bool, uri: str
  ) -> Driver:
      """
      Function to determine that relevant driver based on extras.
  
      :param conn: Connection object.
      :param encrypted: boolean if encrypted connection or not.
      :param uri: uri string for connection.
      :return: Driver
      """
      parsed_uri = urlsplit(uri)
      kwargs: dict[str, Any] = {}
      if parsed_uri.scheme in ["bolt", "neo4j"]:
          kwargs["encrypted"] = encrypted
      return GraphDatabase.driver(
          uri, auth=(conn.login, conn.password), **kwargs
      )
  
file_path: airflow/airflow/providers/neo4j/hooks/neo4j.py
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, Any
  from urllib.parse import urlsplit
  from neo4j import Driver, GraphDatabase
  from airflow.hooks.base import BaseHook
label_desc: Use image node_id 3 for calling the Neo4jHook obj's underlying member method code with example usage: obj.get_client(conn, encrypted, uri) and returns: GraphDatabase