code: def final_performance_delinquency(gdf, joined_df, **kwargs):
      chronometer = Chronometer.makeStarted()
      tables = {"gdf": gdf, "joined_df": joined_df}
      query = """
          SELECT g.loan_id, current_actual_upb, current_loan_delinquency_status,
              delinquency_12, interest_rate, loan_age, mod_flag, msa,
              non_interest_bearing_upb
          FROM main.gdf as g LEFT OUTER JOIN main.joined_df as j
          ON g.loan_id = j.loan_id
          and EXTRACT(YEAR FROM g.monthly_reporting_period) = j.timestamp_year
          and EXTRACT(MONTH FROM g.monthly_reporting_period) = j.timestamp_month
      """
      results = pyblazing.run_query(query, tables)
      Chronometer.show(chronometer, "Final performance delinquency")
      return results
  
imports: import time
  from collections import OrderedDict
  import numpy
  import pandas
  import pyblazing
  from pyblazing import DriverType, FileSystemType, SchemaFrom, get_dtype_values
  from sklearn.model_selection import train_test_split
  import xgboost
  from Configuration import Settings
  from DemoTest.chronometer import Chronometer
  from Utils import Execution
label_desc: Use image node_id 18 for calling a global function with example usage: final_performance_delinquency(gdf, joined_df) and returns: results