code: def drop_datasets(func):
      """Decorator that drops all non-persistent datasets from the database
      before running a test.
      """
  
      @wraps(func)
      def wrapper(*args, **kwargs):
          fo.delete_non_persistent_datasets()
          return func(*args, **kwargs)
  
      return wrapper
  
imports: from functools import wraps
  import platform
  import unittest
  import fiftyone
label_desc: Use image node_id 1 for calling a global function with example usage: drop_datasets(func) and returns: wrapper, func