code: def test_neptune_saver_serializable(dirname):
      mock_logger = MagicMock(spec=NeptuneLogger)
      mock_logger.upload = MagicMock()
      model = torch.nn.Module()
      to_save_serializable = {"model": model}
  
      saver = NeptuneSaver(mock_logger)
      fname = dirname / "test.pt"
      saver(to_save_serializable, fname)
  
      assert mock_logger[dirname / "test.pt"].upload.call_count == 1
  
imports: import math
  import warnings
  from unittest.mock import MagicMock
  import pytest
  import torch
  from ignite.contrib.handlers.neptune_logger import global_step_from_engine, GradsScalarHandler, NeptuneLogger, NeptuneSaver, OptimizerParamsHandler, OutputHandler, WeightsScalarHandler
  from ignite.engine import Engine, Events, State
label_desc: Use image node_id 20 for calling a global function with example usage: test_neptune_saver_serializable(dirname) without return types