code: def drop_async_dataset(func):
      """Decorator that drops a provided dataset"""
  
      @wraps(func)
      async def wrapper(*args, **kwargs):
          dataset = fo.Dataset()
          dataset.persistent = True
          try:
              await func(args[0], dataset, *args[1:], **kwargs)
          except Exception as exc:
              dataset.delete()
              raise exc
  
          dataset.delete()
  
      return wrapper
  
imports: from functools import wraps
  import platform
  import unittest
  import fiftyone
label_desc: Use image node_id 2 for calling a global function with example usage: drop_async_dataset(func) and returns: wrapper