code: def test_executors_del_does_not_raise(backend):
      # if executor init fails you can get very weird error messages,
      # because of the deleter trying to close unallocated resources.
  
      executor = backend(1)
      if hasattr(executor, "pool"):
          executor.pool.shutdown()
          del executor.pool
      elif hasattr(executor, "client"):
          executor.client.close()
          del executor.client
  
      del executor
  
imports: import os
  import time
  import pytest
  from orion.executor.base import AsyncException, ExecutorClosed, executor_factory
  from orion.executor.dask_backend import HAS_DASK, Dask
  from orion.executor.multiprocess_backend import PoolExecutor
  from orion.executor.ray_backend import HAS_RAY, Ray
  from orion.executor.single_backend import SingleExecutor
label_desc: Use image node_id 27 for calling a global function with example usage: test_executors_del_does_not_raise(backend) without return types