code: def test_list_models(mock_client):
      mock_client = mock_client()
  
      # either one of these project APIs could be called
      mock_client.projects_service_list_memberships.return_value = (
          V1ListMembershipsResponse(
              memberships=[V1Membership(project_id="test-project-id")],
          )
      )
      mock_client.projects_service_get_project.return_value = V1Project(
          id="test-project-id"
      )
  
      mock_client.models_store_list_models.return_value = (
          V1ListModelsResponse(models=[V1Model(name="test-model")])
      )
  
      res = list_models()
      assert res[0].name == "test-model"
  
      mock_client.models_store_list_models.assert_called_once_with(
          project_id="test-project-id"
      )
  
imports: import os
  from unittest import mock
  from lightning.store import download_model, list_models, upload_model
  from lightning_cloud.openapi import V1DownloadModelResponse, V1GetUserResponse, V1ListMembershipsResponse, V1ListModelsResponse, V1Membership, V1Model, V1Project, V1UploadModelRequest, V1UploadModelResponse
label_desc: Use image node_id 3 for calling a global function with example usage: test_list_models(mock_client) without return types