code: def test_retry_call_num_retries_overrides_default_num_retries():
      func = mock.Mock()
      func.side_effect = ValueError
  
      retrier = retry.Retry(
          func,
          retryable_exceptions=(ValueError,),
      )
      num_retries = 4
      with pytest.raises(ValueError):
          retrier(num_retries=num_retries)
  
      assert func.call_count == num_retries + 1
  
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 a global function with example usage: test_retry_call_num_retries_overrides_default_num_retries() without return types