code: def test_cancellation_after_eager_step_blocks(self):
      async def coro():
          await asyncio.sleep(0.1)
          return "finished after blocking"
  
      async def run():
          t = self.loop.create_task(coro())
          t.cancel("cancellation message")
          self.assertGreater(t.cancelling(), 0)
          result = await t
  
      with self.assertRaises(asyncio.CancelledError) as cm:
          self.run_coro(run())
  
      self.assertEqual("cancellation message", cm.exception.args[0])
  
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 8 for calling the EagerTaskFactoryLoopTests obj's underlying member method code with example usage: obj.test_cancellation_after_eager_step_blocks() and returns: str