code: def test_mnist_prior_strategy(
      mnist_visiondata_train, mnist_visiondata_test
  ):
      # Arrange
      check = SimpleModelComparison(
          strategy="prior", n_to_show=2, show_only="largest"
      )
      # Act
      result = check.run(mnist_visiondata_train, mnist_visiondata_test)
      first_row = (
          result.value.loc[result.value["Model"] != "Perfect Model"]
          .sort_values(by="Number of samples", ascending=False)
          .iloc[0]
      )
      # Assert
      assert_that(result.value, has_length(30))
      assert_that(first_row["Value"], close_to(0.245, 0.05))
      assert_that(first_row["Number of samples"], equal_to(28))
      assert_that(first_row["Class"], equal_to(1))
  
file_path: deepchecks/tests/vision/checks/model_evaluation/simple_model_comparison_test.py
imports: from hamcrest import assert_that, calling, close_to, equal_to, greater_than, has_items, has_length, is_in, raises
  from deepchecks.core.errors import DeepchecksValueError
  from deepchecks.vision.checks import SimpleModelComparison
  from tests.base.utils import equal_condition_result
label_desc: Use image node_id 1 for calling a global function with example usage: test_mnist_prior_strategy(mnist_visiondata_train, mnist_visiondata_test) without return types