code: def _check_file(modify_times: Dict[str, float], path: str) -> None:
      try:
          modified = os.stat(path).st_mtime
      except Exception:
          return
      if path not in modify_times:
          modify_times[path] = modified
          return
      if modify_times[path] != modified:
          gen_log.info("%s modified; restarting server", path)
          _reload()
  
imports: import os
  import sys
  import functools
  import importlib.abc
  import os
  import pkgutil
  import sys
  import traceback
  import types
  import subprocess
  import weakref
  from tornado import ioloop
  from tornado.log import gen_log
  from tornado import process
  from typing import Callable, Dict, Optional, List, Union
label_desc: Use image node_id 6 for calling a global function with example usage: _check_file(modify_times, path) without return types