code: def test_respects_max_sleep_if_smaller_than_initial_sleep(
      self, mock_time: MockTime
  ):
      max_sleep = 10 * SECOND
      backoff = retry.ExponentialBackoff(
          initial_sleep=2 * max_sleep, max_sleep=max_sleep
      )
      assert backoff.next_sleep_or_reraise(MyError()) == max_sleep
  
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 3 for calling the TestExponentialBackoff obj's underlying member method code with example usage: obj.test_respects_max_sleep_if_smaller_than_initial_sleep(mock_time) without return types