code: def testTrackPersistentBytes(self):
      ops.reset_default_graph()
      a = array_ops.constant(np.ones((100, 100)))
      b = array_ops.constant(np.ones((100, 100)))
      c = a * b
      config = config_pb2.ConfigProto()
      config.graph_options.rewrite_options.min_graph_nodes = -1
  
      with session.Session(config=config) as sess:
          run_options = config_pb2.RunOptions(
              trace_level=config_pb2.RunOptions.FULL_TRACE
          )
          run_metadata = config_pb2.RunMetadata()
          sess.run(c, options=run_options, run_metadata=run_metadata)
  
          options = (
              option_builder.ProfileOptionBuilder.time_and_memory()
          )
          options["min_bytes"] = 0
          options["select"] = (
              "bytes",
              "peak_bytes",
              "output_bytes",
              "residual_bytes",
          )
          ret = model_analyzer.profile(
              sess.graph,
              run_meta=run_metadata,
              cmd="scope",
              options=options,
          )
  
          run_metadata = config_pb2.RunMetadata()
          sess.run(c, options=run_options, run_metadata=run_metadata)
          ret2 = model_analyzer.profile(
              sess.graph,
              run_meta=run_metadata,
              cmd="scope",
              options=options,
          )
  
          n = lib.SearchTFProfNode(ret, "mul")
          n2 = lib.SearchTFProfNode(ret2, "mul")
          self.assertGreater(n.peak_bytes, 0)
          self.assertGreater(n.output_bytes, 0)
          self.assertGreater(n.residual_bytes, 0)
          self.assertEqual(n.peak_bytes, n2.peak_bytes)
          self.assertEqual(n.output_bytes, n2.output_bytes)
          self.assertEqual(n.residual_bytes, n2.residual_bytes)
  
imports: import gzip
  import io
  import os
  import random
  import re
  import numpy
  from tensorflow.core.profiler import profile_pb2
  from tensorflow.core.protobuf import config_pb2
  from tensorflow.core.protobuf import rewriter_config_pb2
  from tensorflow.python.client import session
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gradients
  from tensorflow.python.ops import random_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.ops import while_loop
  from tensorflow.python.platform import gfile
  from tensorflow.python.platform import test
  from tensorflow.python.profiler import model_analyzer
  from tensorflow.python.profiler import option_builder
  from tensorflow.python.profiler import profile_context
  from tensorflow.python.profiler.internal import model_analyzer_testlib
  from tensorflow.python.util import compat
label_desc: Use image node_id 19 for calling the PrintModelAnalysisTest obj's underlying member method code with example usage: obj.testTrackPersistentBytes() without return types