code: def getLogLevel() -> Optional[int]:
      """
      This returns this log level as integer, or none (if no logging is enabled).
  
      Spark Connect logging can be configured with environment variable 'SPARK_CONNECT_LOG_LEVEL'
  
      .. versionadded:: 3.5.0
      """
  
      if not logger.disabled:
          return logger.level
      return None
  
imports: import logging
  import os
  from typing import Optional
label_desc: Use image node_id 2 for calling a global function with example usage: getLogLevel() and returns: None, logger