code: def check_path(thing: str, path: str):
      errors = []
      # There are few other ways this can break (e.g. "dir/../../") but this will cover most ways users can trip up
      if path.startswith("/") or path.startswith(".."):
          errors.append(
              f"The path passed to the {thing} must not start with '..' or '/'."
              + CHECK_PATH_HELP_TEXT
          )
      if not os.path.exists(path):
          errors.append(
              f"The path passed to the {thing} does not exist: {path}"
              + CHECK_PATH_HELP_TEXT
          )
      return errors
  
label_desc: Use image node_id 1 for calling a global function with example usage: check_path(thing, path) and returns: errors