class_docstr: Parent class for check that compares between two or more models.
class_docstr_tok: ["Parent","class","for","check","that","compares","between","two","or","more","models","."]
docstr: Initialize context and pass to check logic.
  
  Parameters
  ----------
  train_datasets: Union[Dataset, List[Dataset]]
      train datasets
  test_datasets: Union[Dataset, List[Dataset]]
      test datasets
  models: Union[List[BasicModel], Mapping[str, BasicModel]]
      list or map of models
docstr_tok: ["Initialize","context","and","pass","to","check","logic",".","Parameters","--","--","--","--","--","train_datasets",":","Union","[","Dataset",",","List","[","Dataset","]","]","train","datasets","test_datasets",":","Union","[","Dataset",",","List","[","Dataset","]","]","test","datasets","models",":","Union","[","List","[","BasicModel","]",",","Mapping","[","str",",","BasicModel","]","]","list","or","map","of","models"]
code: def run(
      self,
      train_datasets: Union[Dataset, List[Dataset]],
      test_datasets: Union[Dataset, List[Dataset]],
      models: Union[List[BasicModel], Mapping[str, BasicModel]],
  ) -> CheckResult:
      """Initialize context and pass to check logic.
  
      Parameters
      ----------
      train_datasets: Union[Dataset, List[Dataset]]
          train datasets
      test_datasets: Union[Dataset, List[Dataset]]
          test datasets
      models: Union[List[BasicModel], Mapping[str, BasicModel]]
          list or map of models
      """
      context = ModelComparisonContext(
          train_datasets, test_datasets, models
      )
      result = self.run_logic(context)
      context.finalize_check_result(result, self)
      return result
  
imports: import abc
  import warnings
  from typing import List, Mapping, Optional, Union
  import numpy
  import pandas
  from deepchecks.core.check_result import CheckFailure, CheckResult
  from deepchecks.core.checks import BaseCheck, DatasetKind, ModelOnlyBaseCheck, SingleDatasetBaseCheck, TrainTestBaseCheck
  from deepchecks.core.errors import DeepchecksNotSupportedError, DeepchecksValueError
  from deepchecks.tabular import deprecation_warnings
  from deepchecks.tabular._shared_docs import docstrings
  from deepchecks.tabular.context import Context
  from deepchecks.tabular.dataset import Dataset
  from deepchecks.tabular.model_base import ModelComparisonContext
  from deepchecks.utils.typing import BasicModel
label_desc: Use image node_id 1 for calling the ModelComparisonCheck obj's underlying member method code with example usage: obj.run(train_datasets, test_datasets, models) and returns: result