code: def test_default_retry_retries_until_max(
      make_client: Callable[[], Determined]
  ) -> None:
      client = make_client()
      model_resp = api_responses.sample_get_model()
      get_model_url = f"{_MASTER}/api/v1/models/{model_resp.model.name}"
  
      responses.get(get_model_url, status=504)
      with pytest.raises(errors.BadRequestException):
          client.get_model(model_resp.model.name)
  
      # Expect max retries (5) + 1 calls.
      responses.assert_call_count(get_model_url, 6)
  
file_path: determined/harness/tests/determined/common/experimental/test_determined.py
imports: import math
  from typing import Callable, List
  from unittest import mock
  import pytest
  import responses
  from determined.common.api import authentication, errors
  from determined.common.experimental import determined, experiment
  from tests.fixtures import api_responses
label_desc: Use image node_id 4 for calling a global function with example usage: test_default_retry_retries_until_max(make_client) without return types