<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def retry_until_not_none_or_limit_reached(method, limit, sleep_s=1, catch_exceptions=()):
 """Executes a method until the retry limit is hit or not None is returned."""

  return retry_until_valid_or_limit_reached(
      method, limit, lambda x: x is not None, sleep_s, catch_exceptions)