code: def test_current_task(self):
      captured_current_task = None
  
      async def coro():
          nonlocal captured_current_task
          captured_current_task = asyncio.current_task()
          # verify the task before and after blocking is identical
          await asyncio.sleep(0.1)
          self.assertIs(asyncio.current_task(), captured_current_task)
  
      async def run():
          t = self.loop.create_task(coro())
          self.assertIs(captured_current_task, t)
          await t
  
      self.run_coro(run())
      captured_current_task = None
  
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 9 for calling the EagerTaskFactoryLoopTests obj's underlying member method code with example usage: obj.test_current_task() without return types