code: def test_was_modified(make_run: Callable[..., Run]) -> None:
      """
      Expects
      -------
      * Should properly indicate when a file was modified
      """
      run = make_run()
      assert not run.was_modified()
  
      time.sleep(0.2)  # Just to give some time after creation
      path = run.pred_path("ensemble")
      path.touch()
  
      assert run.was_modified()
  
file_path: auto-sklearn/test/test_ensemble_builder/test_run.py
imports: from __future__ import annotations
  from typing import Callable
  import pickle
  import time
  from pathlib import Path
  import numpy
  from autosklearn.ensemble_building import Run
  from pytest_cases import parametrize
label_desc: Use image node_id 2 for calling a global function with example usage: test_was_modified(make_run) without return types