code: def test_serialization(tmpdir):
      logger = Logger(str(tmpdir), flush_secs=0.1, dummy_time=256.5)
      logger.log_value("v/1", 1.5, 1)
      logger.log_value("v/22", 16.0, 2)
      time.sleep(0.5)
      (tf_log,) = tmpdir.listdir()
      assert tf_log.read_binary() == (
          # step = 0, initial record
          b'\x18\x00\x00\x00\x00\x00\x00\x00\xa3\x7fK"\t\x00\x00\x00\x00\x00\x08p@\x1a\rbrain.Event:2\xbc\x98!+'
          # v/1
          b"\x19\x00\x00\x00\x00\x00\x00\x00\x8b\xf1\x08(\t\x00\x00\x00\x00\x00\x08p@\x10\x01*\x0c\n\n\n\x03v/1\x15\x00\x00\xc0?,\xec\xc0\x87"
          # v/22
          b"\x1a\x00\x00\x00\x00\x00\x00\x00\x12\x9b\xd8-\t\x00\x00\x00\x00\x00\x08p@\x10\x02*\r\n\x0b\n\x04v/22\x15\x00\x00\x80A\x8f\xa3\xb6\x88"
      )
  
file_path: tensorboard_logger/tests/test_tensorboard_logger.py
imports: import time
  import os
  import glob
  import numpy
  from tensorboard_logger import Logger, configure, log_value
  from tensorboard_logger.tensorboard_logger import make_valid_tf_name
label_desc: Use image node_id 3 for calling a global function with example usage: test_serialization(tmpdir) without return types