code: def new_loop(self):
      loop = asyncio.BaseEventLoop()
      loop._process_events = mock.Mock()
      # Mock waking event loop from select
      loop._write_to_self = mock.Mock()
      loop._write_to_self.return_value = None
      loop._selector = mock.Mock()
      loop._selector.select.return_value = ()
      loop.shutdown_ag_run = False
  
      async def shutdown_asyncgens():
          loop.shutdown_ag_run = True
  
      loop.shutdown_asyncgens = shutdown_asyncgens
  
      return loop
  
imports: import _thread
  import asyncio
  import contextvars
  import re
  import signal
  import sys
  import threading
  import unittest
  from test.test_asyncio import utils
  from unittest import mock
  from unittest.mock import patch
label_desc: Use image node_id 1 for calling the BaseTest obj's underlying member method code with example usage: obj.new_loop() and returns: loop