code: def _mitogen_reset(self, mode):
          
          if not self.context:
              return
  
          self.chain.reset()
          self.parent.call_service(
              service_name='ansible_mitogen.services.ContextService',
              method_name=mode,
              context=self.context
          )
  
          self.context = None
          self.login_context = None
          self.init_child_result = None
          self.chain = None
docs: Forget everything we know about the connected context. This function
          cannot be called _reset() since that name is used as a public API by
          Ansible 2.4 wait_for_connection plug-in.
  
          :param str mode:
              Name of ContextService method to use to discard the context, either
              'put' or 'reset'.