code: def test_lazy_model_summary():
      """Test that the model summary can work with lazy layers."""
      lazy_model = LazyModel()
      summary = ModelSummary(lazy_model)
  
      with pytest.warns(
          UserWarning,
          match=r"A layer with UninitializedParameter was found. "
          r"Thus, the total number of parameters detected may be inaccurate.",
      ):
          assert summary.total_parameters == 0
          assert summary.trainable_parameters == 0
  
imports: from collections import OrderedDict
  from typing import Any
  import pytest
  import torch
  import torch.nn
  from lightning.fabric.utilities.imports import _TORCH_GREATER_EQUAL_2_0
  from lightning.pytorch import LightningModule, Trainer
  from lightning.pytorch.demos.boring_classes import BoringModel
  from lightning.pytorch.utilities.model_summary.model_summary import LEFTOVER_PARAMS_NAME, NOT_APPLICABLE, UNKNOWN_SIZE, ModelSummary, summarize
  from tests_pytorch.helpers.advanced_models import ParityModuleRNN
  from tests_pytorch.helpers.runif import RunIf
label_desc: Use image node_id 14 for calling a global function with example usage: test_lazy_model_summary() without return types