code: def test_default_session_retry(self, mock_hvac):
      mock_client = mock.MagicMock()
      mock_hvac.Client.return_value = mock_client
      vault_client = _VaultClient(
          auth_type="approle",
          role_id="role",
          url="http://localhost:8180",
          secret_id="pass",
      )
      _ = vault_client.client
  
      default_session = vault_client.kwargs["session"]
      assert isinstance(default_session, Session)
      adapter = default_session.get_adapter(url="http://localhost:8180")
      assert isinstance(adapter, HTTPAdapter)
      max_retries = adapter.max_retries
      assert isinstance(max_retries, Retry)
      assert (max_retries.total if max_retries.total else 0) > 1
      mock_hvac.Client.assert_called_with(
          url="http://localhost:8180", session=default_session
      )
  
imports: from __future__ import annotations
  from unittest import mock
  from unittest.mock import mock_open, patch
  import pytest
  from hvac.exceptions import InvalidPath, VaultError
  from requests import Session
  from requests.adapters import HTTPAdapter
  from urllib3.util import Retry
  from airflow.providers.hashicorp._internal_client.vault_client import _VaultClient
label_desc: Use image node_id 4 for calling the TestVaultClient obj's underlying member method code with example usage: obj.test_default_session_retry(mock_hvac) without return types