code: def test_respects_max_retries(self):
      backoff = retry.ExponentialBackoff(
          initial_sleep=SECOND, max_sleep=SECOND, max_retries=3
      )
      for _ in range(3):
          backoff.next_sleep_or_reraise(MyError())
      with pytest.raises(MyError):
          backoff.next_sleep_or_reraise(MyError())
  
imports: import asyncio
  import dataclasses
  import datetime
  from typing import Iterator
  from unittest import mock
  import pytest
  from wandb.sdk.lib import retry
label_desc: Use image node_id 1 for calling the TestExponentialBackoff obj's underlying member method code with example usage: obj.test_respects_max_retries() without return types