code: def test_deadlock_avoidance_in_recursive_tasks(ray_start_1_cpu):
      def poolit_a(_):
          with Pool(ray_address="auto") as pool:
              return list(pool.map(math.sqrt, range(0, 2, 1)))
  
      def poolit_b():
          with Pool(ray_address="auto") as pool:
              return list(pool.map(poolit_a, range(2, 4, 1)))
  
      result = poolit_b()
      assert result == [[0.0, 1.0], [0.0, 1.0]]
  
imports: import os
  import sys
  import platform
  import pytest
  import tempfile
  import time
  import random
  from collections import defaultdict
  import queue
  import math
  import ray
  from ray._private.test_utils import SignalActor
  from ray.util.multiprocessing import Pool, TimeoutError, JoinableQueue
  from ray.util.joblib import register_ray
  from joblib import parallel_backend, Parallel, delayed
label_desc: Use image node_id 24 for calling a global function with example usage: test_deadlock_avoidance_in_recursive_tasks(ray_start_1_cpu) and returns: list, list