retry_api_call function

Retry an API call with exponential backoff