code: def test_add_multiple_scalars():
      sw = SummaryWriter(logdir=_LOGDIR)
      sw.add_scalar(
          tag="test_multiple_scalars",
          value=np.random.uniform(),
          global_step=0,
      )
      sw.add_scalar(
          tag="test_multiple_scalars",
          value=("scalar1", np.random.uniform()),
          global_step=0,
      )
      sw.add_scalar(
          tag="test_multiple_scalars",
          value=["scalar2", np.random.uniform()],
          global_step=0,
      )
      sw.add_scalar(
          tag="test_multiple_scalars",
          value={
              "scalar3": np.random.uniform(),
              "scalar4": np.random.uniform(),
          },
          global_step=0,
      )
      items = os.listdir(_LOGDIR)
      assert len(items) == 2
      assert "test_multiple_scalars" in items
      items.remove("test_multiple_scalars")
      assert items[0].startswith(_EVENT_FILE_PREFIX)
      print(items[0])
      assert file_exists(os.path.join(_LOGDIR, items[0]))
  
      named_scalar_dir = os.path.join(_LOGDIR, "test_multiple_scalars")
      assert dir_exists(named_scalar_dir)
      for i in range(1, 5):
          sub_dir = os.path.join(named_scalar_dir, "scalar%d" % i)
          assert dir_exists(sub_dir)
          sub_items = os.listdir(sub_dir)
          assert len(sub_items) == 1
          assert sub_items[0].startswith(_EVENT_FILE_PREFIX)
  
imports: import shutil
  from mxboard import SummaryWriter
  from mxboard.utils import _make_metadata_tsv, make_image_grid, _make_sprite_image
  from mxboard.utils import _add_embedding_config, _save_embedding_tsv, _get_embedding_dir
  from mxboard.summary import _get_nodes_from_symbol, _net2pb
  from mxboard.proto.node_def_pb2 import NodeDef
  from mxboard.proto.attr_value_pb2 import AttrValue
  from mxboard.proto.graph_pb2 import GraphDef
  from mxboard.proto.versions_pb2 import VersionDef
  from mxnet.test_utils import *
  from mxnet.gluon import nn
  import mxnet
  from common import with_seed, setup_module
  from nose.tools import make_decorator
label_desc: Use image node_id 20 for calling a global function with example usage: test_add_multiple_scalars() without return types