code: def test_all_tasks_with_blocking(self):
      captured_eager_all_tasks = None
  
      async def coro(fut1, fut2):
          nonlocal captured_eager_all_tasks
          captured_eager_all_tasks = asyncio.all_tasks()
          await fut1
          fut2.set_result(None)
  
      async def run():
          fut1 = self.loop.create_future()
          fut2 = self.loop.create_future()
          t = self.loop.create_task(coro(fut1, fut2))
          self.assertIn(t, captured_eager_all_tasks)
          self.assertIn(t, asyncio.all_tasks())
          fut1.set_result(None)
          await fut2
          self.assertNotIn(t, asyncio.all_tasks())
  
      self.run_coro(run())
  
imports: import asyncio
  import contextvars
  import unittest
  from unittest import mock
  from asyncio import tasks
  from test.test_asyncio import utils
  from test.support.script_helper import assert_python_ok
label_desc: Use image node_id 11 for calling the EagerTaskFactoryLoopTests obj's underlying member method code with example usage: obj.test_all_tasks_with_blocking() without return types