code: def _scalar_summary(self, tf_name, value, step=None):
      summary = summary_pb2.Summary()
      summary.value.add(tag=tf_name, simple_value=value)
      return summary
  
imports: from collections import defaultdict
  import os
  import re
  import socket
  import struct
  import time
  import numpy
  import six
  import scipy.misc
  from .crc32c import crc32c
label_desc: Use image node_id 9 for calling the Logger obj's underlying member method code with example usage: obj._scalar_summary(tf_name, value, step) and returns: summary