code: def dir_state(dirpath):
      try:
          state = hash(os.path.getmtime(dirpath))
      except:
          return None
  
      for p in _iter_plugin_metadata_files(root_dir=dirpath):
          state ^= hash(os.path.getmtime(os.path.dirname(p)))
  
      return state
  
file_path: fiftyone/fiftyone/operators/decorators.py
imports: import asyncio
  from cachetools.keys import hashkey
  from contextlib import contextmanager
  from functools import wraps
  import signal
  import os
  import fiftyone
  from fiftyone.plugins.core import _iter_plugin_metadata_files
label_desc: Use image node_id 5 for calling a global function with example usage: dir_state(dirpath) and returns: state, None