code: def _get_bool(val):
      if isinstance(val, bool):
          return val
      if isinstance(val, str):
          val = val.lower().strip()
          if val == "true":
              return True
          if val == "false":
              return False
      return None
  
file_path: airflow/airflow/providers/oracle/hooks/oracle.py
imports: from __future__ import annotations
  import math
  import warnings
  from datetime import datetime
  import oracledb
  from airflow.exceptions import AirflowProviderDeprecationWarning
  from airflow.providers.common.sql.hooks.sql import DbApiHook
label_desc: Use image node_id 2 for calling a global function with example usage: _get_bool(val) and returns: None, val, True, False