code: def test_created_model_is_listed_by_list_models_function(
      sagemaker_client,
  ):
      model_name = "sample-model"
      create_sagemaker_model(
          sagemaker_client=sagemaker_client, model_name=model_name
      )
  
      models_response = sagemaker_client.list_models()
      assert "Models" in models_response
      models = models_response["Models"]
      assert all("ModelName" in model for model in models)
      assert model_name in [model["ModelName"] for model in models]
  
imports: import boto3
  import pytest
  from tests.helper_functions import set_boto_credentials
  from tests.sagemaker.mock import mock_sagemaker
label_desc: Use image node_id 4 for calling a global function with example usage: test_created_model_is_listed_by_list_models_function(sagemaker_client) without return types