code: def test_model_inference_time_check(
      iris_split_dataset_and_model: t.Tuple[Dataset, Dataset, object]
  ):
      # Arrange
      _, test, model = iris_split_dataset_and_model
      check = ModelInferenceTime()
  
      # Act
      result = check.run(test, model)
  
      # Assert
      assert_that(result, instance_of(CheckResult))
      assert_that(result.value, instance_of(float))
      assert_that(result.display, instance_of(list))
      assert_that(result.display, only_contains(instance_of(str)))  # type: ignore
  
      details_pattern = (
          r"Average model inference time for one sample \(in seconds\): "
          rf"{SCIENTIFIC_NOTATION_REGEXP.pattern}"
      )
  
      assert_that(result.display[0], matches_regexp(details_pattern))
  
file_path: deepchecks/tests/tabular/checks/model_evaluation/model_inference_time_test.py
imports: import re
  import typing
  from hamcrest import assert_that, instance_of, matches_regexp, only_contains
  from deepchecks.core import CheckResult, ConditionCategory
  from deepchecks.tabular.checks.model_evaluation import ModelInferenceTime
  from deepchecks.tabular.dataset import Dataset
  from tests.base.utils import SCIENTIFIC_NOTATION_REGEXP, equal_condition_result
label_desc: Use image node_id 1 for calling a global function with example usage: test_model_inference_time_check(iris_split_dataset_and_model) without return types