code: def test_reuse_pool(pool_typ):
      with pool_typ(CPU_COUNT) as pool:
          with dask.config.set(pool=pool):
              assert get({"x": (inc, 1)}, "x") == 2
              assert get({"x": (inc, 1)}, "x") == 2
  
imports: from __future__ import annotations
  import signal
  import sys
  import threading
  from concurrent.futures import ThreadPoolExecutor
  from multiprocessing.pool import ThreadPool
  from time import sleep, time
  import pytest
  import dask
  from dask.system import CPU_COUNT
  from dask.threaded import get
  from dask.utils_test import add, inc
label_desc: Use image node_id 7 for calling a global function with example usage: test_reuse_pool(pool_typ) without return types