code: def get_engine(configs):
      """
  
      :param configs:
      :return: Returns a SQLAlchemy pg connnection.
      """
      try:
          db_access = configs.db["db_credentials"]
      except KeyError:
          logging.error("KeyError in configuration file.")
          exit(1)
      try:
          engine = create_engine(
              "postgresql://{user}:{pw}@{host}:{port}/{db}".format(
                  user=db_access["user"],
                  pw=db_access["password"],
                  host=db_access["host"],
                  port=db_access["port"],
                  db=db_access["database"],
              )
          )
      except SQLAlchemyError:
          logging.error("PG: could not create pg engine!")
          exit(1)
      return engine
  
file_path: aequitas/src/aequitas_cli/utils/io.py
imports: import pandas
  import ohio.ext.pandas
  import logging
  from datetime import datetime
  from os import path
  from sys import exit
  from sqlalchemy import create_engine
  from sqlalchemy.exc import SQLAlchemyError
  from xhtml2pdf import pisa
label_desc: Use image node_id 6 for calling a global function with example usage: get_engine(configs) and returns: engine