class_docstr: Creates a refreshable credential provider class given an existing credential provider in
  the boto3 credential chain.
class_docstr_tok: ["Creates","a","refreshable","credential","provider","class","given","an","existing","credential","provider","in","the","boto3","credential","chain","."]
code: def __init__(
      self,
      credential_provider: SharedCredentialProvider,
      check_every: int = 2,
  ) -> None:
      super().__init__()
      self.check_every = check_every
      self.credential_provider = credential_provider
  
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 RefreshableCredentialProvider object from inherited base classes: CredentialProvider with example: obj = RefreshableCredentialProvider(credential_provider, check_every)