code: def test_log_model_summary(neptune_mock):
      model = BoringModel()
      test_variants = [
          ({}, "training/model/summary"),
          ({"prefix": "custom_prefix"}, "custom_prefix/model/summary"),
          (
              {"prefix": "custom/nested/prefix"},
              "custom/nested/prefix/model/summary",
          ),
      ]
  
      for prefix, model_summary_key in test_variants:
          logger, run_instance_mock, _ = _get_logger_with_mocks(
              api_key="test", project="project", **prefix
          )
          file_from_content_mock = (
              neptune_mock.types.File.from_content()
          )
  
          logger.log_model_summary(model)
  
          assert run_instance_mock.__setitem__.call_count == 1
          assert run_instance_mock.__getitem__.call_count == 0
          run_instance_mock.__setitem__.assert_called_once_with(
              model_summary_key, file_from_content_mock
          )
  
imports: import os
  import pickle
  from collections import namedtuple
  from unittest import mock
  from unittest.mock import MagicMock, call
  import lightning.pytorch
  import pytest
  import torch
  from lightning.pytorch import Trainer
  from lightning.pytorch.demos.boring_classes import BoringModel
  from lightning.pytorch.loggers import NeptuneLogger
label_desc: Use image node_id 14 for calling a global function with example usage: test_log_model_summary(neptune_mock) without return types