code: def test_get_endpoint_by_display_name(vertex_client):
      with patch(
          f"{path}.aiplatform.Endpoint.list",
          return_value=mock_endpoints(),
      ):
          endpoint = vertex_client.get_endpoint_by_display_name(
              "Endpoint1"
          )
          assert endpoint.display_name == "Endpoint1"
          assert endpoint.name == "EndpointID1"
  
imports: import time
  import json
  import pandas
  import pytest
  from unittest.mock import Mock, patch
  from mindsdb_sql import parse_sql
  from tests.unit.executor_test_base import BaseExecutorTest
  from mindsdb.integrations.handlers.vertex_handler.vertex_client import VertexClient
label_desc: Use image node_id 6 for calling a global function with example usage: test_get_endpoint_by_display_name(vertex_client) without return types