code: def test_model_compare_classification(
      classification_data,
      model_list,
      continuous_cols,
      categorical_cols,
      metric,
      rank_metric,
  ):
      (train, test, target) = classification_data
      data_config = DataConfig(
          target=target,
          continuous_cols=continuous_cols,
          categorical_cols=categorical_cols,
          handle_missing_values=True,
          handle_unknown_categories=True,
      )
      trainer_config = TrainerConfig(
          max_epochs=1,
          checkpoints=None,
          early_stopping=None,
          accelerator="cpu",
          fast_dev_run=True,
      )
      optimizer_config = OptimizerConfig()
      comp_df, best_model = _run_model_compare(
          "classification",
          model_list,
          data_config,
          trainer_config,
          optimizer_config,
          train,
          test,
          metric,
          rank_metric,
      )
      if model_list == "lite":
          assert len(comp_df) == 3
      else:
          assert len(comp_df) == len(model_list)
  
imports: import copy
  import os
  import numpy
  import pytest
  import torch
  from pytorch_tabular import TabularModel, TabularModelTuner, model_sweep
  from pytorch_tabular.config import DataConfig, OptimizerConfig, TrainerConfig
  from pytorch_tabular.config.config import SSLModelConfig
  from pytorch_tabular.feature_extractor import DeepFeatureExtractor
  from pytorch_tabular.models import AutoIntConfig, CategoryEmbeddingModelConfig, FTTransformerConfig, GANDALFConfig, GatedAdditiveTreeEnsembleConfig, NodeConfig, TabNetModelConfig
  from pytorch_tabular.ssl_models import DenoisingAutoEncoderConfig
  from scipy.stats import randint, uniform
  from sklearn.metrics import accuracy_score, r2_score
  from sklearn.model_selection import KFold
label_desc: Use image node_id 22 for calling a global function with example usage: test_model_compare_classification(classification_data, model_list, continuous_cols, categorical_cols, metric, rank_metric) without return types