code: def to_bolt_driver(driver=None):
      if driver is None:
          return None
      try:
          from neo4j import GraphDatabase, Driver
  
          if isinstance(driver, Driver):
              return driver
          return GraphDatabase.driver(**driver)
      except ImportError:
          raise BoltSupportModuleNotFound()
  
file_path: pygraphistry/graphistry/bolt_util.py
imports: import pandas
  from datetime import datetime
  from .pygraphistry import util
  from .util import setup_logger
label_desc: Use image node_id 1 for calling a global function with example usage: to_bolt_driver(driver) and returns: None, GraphDatabase, driver