code: def testMinimizePeakMemoryList_ZeroUseTensor(self):
      mtf_graph = mtf.Graph()
      mesh = mtf.Mesh(mtf_graph, "my_mesh")
      mtf.Constant(
          mesh,
          0,
          shape=mtf.convert_to_shape("a:4"),
          dtype=tf.int32,
          name="X",
      )
      y = mtf.Constant(
          mesh,
          0,
          shape=mtf.convert_to_shape("b:3"),
          dtype=tf.int32,
          name="Y",
      ).outputs[0]
      mtf.BroadcastOperation(
          y, mtf.convert_to_shape("b:3,c:2"), name="Z"
      )
  
      graph = graph_interface.GraphInterface(mtf_graph)
      schedule = list(scheduler.minimize_peak_memory(graph, "LIST"))
      # When nothing is scheduled:
      #   X frees 0 entries
      #   Y frees -3 entries
      # Hence the schedule should be [X, Y, Z].
      self.assertEqual(schedule, [0, 1, 2])
  
file_path: mesh/mesh_tensorflow/auto_mtf/scheduler_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl.testing import parameterized
  import mesh_tensorflow
  from mesh_tensorflow.auto_mtf import graph_interface
  from mesh_tensorflow.auto_mtf import scheduler
  import tensorflow.compat.v1
label_desc: Use image node_id 4 for calling the SchedulerTest obj's underlying member method code with example usage: obj.testMinimizePeakMemoryList_ZeroUseTensor() without return types