code: def test_two_level_regression_transform_loco_infer_contigs(spark):
      indexdf = spark.read.parquet(
          f"{data_root}/groupedIDs.snappy.parquet"
      )
      level2df = spark.read.parquet(
          f"{data_root}/level2BlockedGT.snappy.parquet"
      )
  
      group2ids = __get_sample_blocks(indexdf)
      regressor = RidgeRegression(
          level2df,
          labeldf,
          group2ids,
          add_intercept=False,
          alphas=alphas,
      )
      y_hat = regressor.fit_transform_loco()
  
      pd.testing.assert_frame_equal(y_hat, level2_yhat_loco_df)
  
imports: from glow.wgr.ridge_reduction import *
  from glow.wgr.ridge_regression import *
  from glow.wgr.ridge_udfs import *
  from glow.wgr.model_functions import _fill_na_and_standardize
  import numpy
  import pandas
  from pyspark.sql.functions import *
  import math
label_desc: Use image node_id 22 for calling a global function with example usage: test_two_level_regression_transform_loco_infer_contigs(spark) without return types