def METHOD_NAME(self, role: str) -> Tuple[str, AccessKey]:
    account_id_match = re.search(r"arn:aws:iam::([0-9]+).+", role)
    if account_id_match:
        account_id = account_id_match.group(1)
    else:
        account_id = self.account_id
    iam_backend = iam_backends[account_id]["global"]
    return account_id, iam_backend.create_temp_access_key()