code: def push_topdf(input_file, report):
      datestr = datetime.now().strftime("%Y%m%d-%H%M%S")
      ipath, input_name = path.split(input_file)
      # outpath = output_folder + input_name[:input_file.find('.')] + '_aequitas_' + datestr + '.csv'
      # for now we are saving the csv in same folder as the input file
      try:
          outpath = (
              ipath
              + input_name[: input_file.find(".")]
              + "_aequitas_"
              + datestr
              + ".pdf"
          )
          logging.info("Saving bias report to pdf on " + outpath)
  
          result_pdf = open(outpath, "w+b")
          pisaStatus = pisa.CreatePDF(report, dest=result_pdf)
          result_pdf.close()
      except IOError:
          logging.info(
              "Failed! Not able to save Aequitas Report pdf on "
              + outpath
          )
      return
  
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 5 for calling a global function with example usage: push_topdf(input_file, report) without return types