class_docstr: Measure model average inference time (in seconds) per sample.
  
  Parameters
  ----------
  n_samples : int , default: 1_000
      number of samples to use for this check.
  random_state : int, default: 42
      random seed for all check internals.
docstr: Add condition - the average model inference time (in seconds) per sample is less than threshold.
  
  Parameters
  ----------
  value : float , default: 0.001
      condition threshold.
  Returns
  -------
  MI
code: def add_condition_inference_time_less_than(
      self: MI, value: float = 0.001
  ) -> MI:
      """Add condition - the average model inference time (in seconds) per sample is less than threshold.
  
      Parameters
      ----------
      value : float , default: 0.001
          condition threshold.
      Returns
      -------
      MI
      """
  
      def condition(average_time: float) -> ConditionResult:
          details = f"Found average inference time (seconds): {format_number(average_time, floating_point=8)}"
          category = (
              ConditionCategory.PASS
              if average_time < value
              else ConditionCategory.FAIL
          )
          return ConditionResult(category=category, details=details)
  
      return self.add_condition(
          condition_func=condition,
          name=(
              f"Average model inference time for one sample is less than {format_number(value, floating_point=8)}"
          ),
      )
  
file_path: deepchecks/deepchecks/tabular/checks/model_evaluation/model_inference_time.py
imports: import timeit
  import typing
  from deepchecks.core import CheckResult, ConditionResult
  from deepchecks.core.condition import ConditionCategory
  from deepchecks.core.errors import DeepchecksValueError
  from deepchecks.tabular import Context, SingleDatasetCheck
  from deepchecks.utils.strings import format_number
label_desc: Use image node_id 3 for calling the ModelInferenceTime obj's underlying member method code with example usage: obj.add_condition_inference_time_less_than(value) and returns: self, ConditionResult