code: def test_add_image():
      def check_add_image(data):
          sw = SummaryWriter(logdir=_LOGDIR)
          sw.add_image(tag="test_add_image", image=data, global_step=0)
          sw.close()
          check_event_file_and_remove_logdir()
  
      shape = list(rand_shape_nd(4))
      shape[1] = 3
      shape = tuple(shape)
      data = mx.nd.random.normal(shape=shape).clip(0, 1)
      check_add_image(data)
      check_add_image(data.asnumpy())
      check_add_image(data.astype("float64"))
      check_add_image((data * 255).astype("uint8"))
  
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 22 for calling a global function with example usage: test_add_image() without return types