code: def testEagerMemoryUsageWithRecreation(self):
      if memory_profiler is None:
          self.skipTest("memory_profiler required to run this test")
  
      dataset = dataset_ops.Dataset.range(10)
  
      def f():
          multi_device_iterator = (
              multi_device_iterator_ops.MultiDeviceIterator(
                  dataset, [self._devices[1], self._devices[2]]
              )
          )
          self.evaluate(multi_device_iterator.get_next())
          del multi_device_iterator
  
      # TODO(b/123316347): Reduce threshold once bug is fixed.
      self.assertMemoryNotIncreasing(
          f, num_iters=50, max_increase_mb=250
      )
  
imports: import gc
  import time
  import weakref
  from absl.testing import parameterized
  from tensorflow.python.data.kernel_tests import test_base
  from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.data.ops import multi_device_iterator_ops
  from tensorflow.python.framework import combinations
  from tensorflow.python.framework import dtypes
  from tensorflow.python.platform import test
  from tensorflow.python.platform import tf_logging
  from tensorflow.python.types import internal
label_desc: Use image node_id 5 for calling the MemoryCleanupTest obj's underlying member method code with example usage: obj.testEagerMemoryUsageWithRecreation() without return types