code: def _wrap_client(self, region_name, method, *args, **kwargs):
          
          try:
              return method(*args, **kwargs)
          except botocore.exceptions.BotoCoreError:
              self._regional_clients.pop(region_name)
              _LOGGER.error(
                  'Removing regional client "%s" from cache due to BotoCoreError on %s call', region_name, method.__name__
              )
              raise
docs: Proxies all calls to a kms clients methods and removes misbehaving clients
  
          :param str region_name: AWS Region ID (ex: us-east-1)
          :param callable method: a method on the KMS client to proxy
          :param tuple args: list of arguments to pass to the provided ``method``
          :param dict kwargs: dictonary of keyword arguments to pass to the provided ``method``