code: def test_main_logger():
      """Test basic usage"""
      logger = MainLogger()
      logs = {"loss": 0.6}
      logger.update(logs)
      assert "loss" in logger.log_history.keys()
      assert len(logger.log_history["loss"]) == 1
  
file_path: livelossplot/tests/test_main_logger.py
imports: import re
  from livelossplot import MainLogger
label_desc: Use image node_id 1 for calling a global function with example usage: test_main_logger() without return types