code: def test_issue105987(self):
      code = """if 1:
          from _asyncio import _swap_current_task
  
          class DummyTask:
              pass
  
          class DummyLoop:
              pass
  
          l = DummyLoop()
          _swap_current_task(l, DummyTask())
          t = _swap_current_task(l, None)
          """
  
      _, out, err = assert_python_ok("-c", code)
      self.assertFalse(err)
  
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 1 for calling the CEagerTaskFactoryLoopTests obj's underlying member method code with example usage: obj.test_issue105987() without return types