code: def test_delegates_exc_passing_predicate(self):
      retriable_exc = MyError("retry me")
      wrapped = mock.Mock(
          spec=retry.Backoff,
          next_sleep_or_reraise=mock.Mock(return_value=123 * SECOND),
      )
      filtered = retry.FilteredBackoff(
          filter=lambda e: e == retriable_exc,
          wrapped=wrapped,
      )
  
      assert (
          filtered.next_sleep_or_reraise(retriable_exc) == 123 * SECOND
      )
      wrapped.next_sleep_or_reraise.assert_called_once_with(
          retriable_exc
      )
  
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 2 for calling the TestFilteredBackoff obj's underlying member method code with example usage: obj.test_delegates_exc_passing_predicate() without return types