code: def worker_warning_captured(self, warning_message, when, item):
          
          kwargs = dict(warning_message=warning_message, when=when, item=item)
          self.config.hook.pytest_warning_captured.call_historic(kwargs=kwargs)
docs: Emitted when a node calls the pytest_logwarning hook.