code: def test_get_client_not_ready():
      """Test clients are not created when endpoint is not ready."""
      endpoint = InferenceEndpoint.from_raw(
          MOCK_INITIALIZING, namespace="foo"
      )
  
      with pytest.raises(InferenceEndpointError):
          assert endpoint.client
  
      with pytest.raises(InferenceEndpointError):
          assert endpoint.async_client
  
file_path: huggingface_hub/tests/test_inference_endpoints.py
imports: from datetime import datetime, timezone
  from unittest.mock import Mock, patch
  import pytest
  from huggingface_hub import AsyncInferenceClient, HfApi, InferenceClient, InferenceEndpoint, InferenceEndpointError, InferenceEndpointTimeoutError
label_desc: Use image node_id 3 for calling a global function with example usage: test_get_client_not_ready() without return types