code: def run_coroutine(self, cor, *args, **kwargs):
          
  
          if self.stopping:
              raise LoopStoppingError("Could not launch coroutine because loop is shutting down: %s" % cor)
  
          self.start()
  
          cor = _instaniate_coroutine(cor, args, kwargs)
  
          if self.inside_loop():
              raise InternalError("BackgroundEventLoop.run_coroutine called from inside event loop, "
                                  "would have deadlocked.")
  
          future = self.launch_coroutine(cor)
          return future.result()
docs: Run a coroutine to completion and return its result.
  
          This method may only be called outside of the event loop.
          Attempting to call it from inside the event loop would deadlock
          and will raise InternalError instead.
  
          Args:
              cor (coroutine): The coroutine that we wish to run in the
                  background and wait until it finishes.
  
          Returns:
              object: Whatever the coroutine cor returns.