code: def test_warning_logs_not_generated(self):
      with self._caplog.at_level(logging.WARNING):
          providers_manager = ProvidersManager()
          providers_manager._provider_dict[
              "apache-airflow-providers-sftp"
          ] = ProviderInfo(
              version="0.0.1",
              data={
                  "hook-class-names": [
                      "airflow.providers.sftp.hooks.sftp.SFTPHook"
                  ],
                  "connection-types": [
                      {
                          "hook-class-name": "airflow.providers.sftp.hooks.sftp.SFTPHook",
                          "connection-type": "sftp",
                      }
                  ],
              },
              package_or_source="package",
          )
          providers_manager._discover_hooks()
          _ = providers_manager._hooks_lazy_dict["sftp"]
      assert not self._caplog.records
      assert "sftp" in providers_manager.hooks
  
imports: from __future__ import annotations
  import logging
  import re
  import sys
  from unittest.mock import patch
  import pytest
  from flask_appbuilder.fieldwidgets import BS3TextFieldWidget
  from flask_babel import lazy_gettext
  from wtforms import BooleanField, Field, StringField
  from airflow.exceptions import AirflowOptionalProviderFeatureException
  from airflow.providers_manager import HookClassProvider, LazyDictWithCache, PluginInfo, ProviderInfo, ProvidersManager
label_desc: Use image node_id 7 for calling the TestProviderManager obj's underlying member method code with example usage: obj.test_warning_logs_not_generated() without return types