code: def __init__(
      self,
      check_every: int,
      credentials_provider: SharedCredentialProvider,
  ):
      self._credentials_provider = credentials_provider
      self._check_every = check_every
      self._lock = threading.Lock()
      self._check_time = time.time() + check_every
      self._load_and_set_credentials()
  
imports: import logging
  import os
  import threading
  import time
  from typing import Any
  import boto3
  from botocore import session
  from botocore.compat import ensure_unicode
  from botocore.credentials import CredentialProvider, Credentials, ReadOnlyCredentials, SharedCredentialProvider
  from botocore.session import get_session
label_desc: Use image node_id 1 to create a new RefreshableSharedCredentials object from inherited base classes: Credentials with example: obj = RefreshableSharedCredentials(check_every, credentials_provider)