code: def triggerbyfile(filename):
      """
      File trigger, will be activated once the file is modified.
  
      :param filename: the path to the file to be modified.
      """
      from inotify_simple import INotify, flags
  
      def wrapped_func(func):
          def new_func(*args, **kwargs):
              while True:
                  inotify = INotify()
                  watch_flags = flags.MODIFY
                  wd = inotify.add_watch(filename, watch_flags)
                  for event in inotify.read():
                      func(*args, **kwargs)
  
          new_func.__name__ = TRIGGER_REG_NAME_PREFIX + func.__name__
          return new_func
  
      return wrapped_func
  
imports: from .None import TRIGGER_REG_NAME_PREFIX
  import time
label_desc: Use image node_id 1 for calling a global function with example usage: triggerbyfile(filename) and returns: wrapped_func, new_func