code: def check_persisted_path(func):
      @wraps(func)
      def func_wrapper(self, path, *args, **kwargs):
          path = Path(path)
          if path.exists():
              raise PersistingError(path)
          return func(self, path, *args, **kwargs)
  
      return func_wrapper
  
imports: from __future__ import unicode_literals
  import importlib
  import json
  import numbers
  import re
  from builtins import bytes, str
  from datetime import datetime
  from functools import wraps
  from pathlib import Path
  from future.utils import text_type
  from snips_nlu.constants import END, ENTITY_KIND, RES_MATCH_RANGE, RES_VALUE, START
  from snips_nlu.exceptions import NotTrained, PersistingError
label_desc: Use image node_id 8 for calling a global function with example usage: check_persisted_path(func) and returns: func_wrapper, func