code: def test_json_log(self) -> None:
      with TemporaryDirectory() as tmpdir:
          json_path = Path(tmpdir, "test.json").as_posix()
          logger = JSONLogger(json_path, steps_before_flushing=1)
          log_name = "asdf"
          log_value = 123.0
          log_step = 10
          logger.log(log_name, log_value, log_step)
          logger.close()
  
          with open(json_path) as f:
              d = json.load(f)
              print(d)
              self.assertTrue(len(d))
              self.assertEqual(d[0][log_name], log_value)
              self.assertEqual(d[0]["step"], log_step)
  
imports: import json
  import unittest
  from pathlib import Path
  from tempfile import TemporaryDirectory
  from torchtnt.utils.loggers.json import JSONLogger
label_desc: Use image node_id 1 for calling the JSONLoggerTest obj's underlying member method code with example usage: obj.test_json_log() without return types