code: def assert_logger_called_once_with(logger, key, value):
      result = logger[key].fetch_values()
      assert len(result.value) == 1
  
      if isinstance(result.value[0], float):
          assert math.isclose(result.value[0], value, abs_tol=0.01)
      else:
          assert result.value[0] == value
  
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 1 for calling a global function with example usage: assert_logger_called_once_with(logger, key, value) without return types