docstr: Tests that events are not discarded if purge_orphaned_data is
  false.
code: def testOrphanedDataNotDiscardedIfFlagUnset(self):
      """Tests that events are not discarded if purge_orphaned_data is
      false."""
      gen = _EventGenerator(self)
      acc = ea.EventAccumulator(gen, purge_orphaned_data=False)
  
      gen.AddEvent(
          event_pb2.Event(
              wall_time=0, step=0, file_version="brain.Event:1"
          )
      )
      gen.AddScalar("s1", wall_time=1, step=100, value=20)
      gen.AddScalar("s1", wall_time=1, step=200, value=20)
      gen.AddScalar("s1", wall_time=1, step=300, value=20)
      acc.Reload()
      ## Check that number of items are what they should be
      self.assertEqual(
          [x.step for x in acc.Scalars("s1")], [100, 200, 300]
      )
  
      gen.AddScalar("s1", wall_time=1, step=101, value=20)
      gen.AddScalar("s1", wall_time=1, step=201, value=20)
      gen.AddScalar("s1", wall_time=1, step=301, value=20)
      acc.Reload()
      ## Check that we have NOT discarded 200 and 300 from s1
      self.assertEqual(
          [x.step for x in acc.Scalars("s1")],
          [100, 200, 300, 101, 201, 301],
      )
  
imports: import os
  import numpy
  import tensorflow
  from tensorboard.backend.event_processing import event_accumulator
  from tensorboard.compat.proto import config_pb2
  from tensorboard.compat.proto import event_pb2
  from tensorboard.compat.proto import graph_pb2
  from tensorboard.compat.proto import meta_graph_pb2
  from tensorboard.compat.proto import summary_pb2
  from tensorboard.plugins.distribution import compressor
  from tensorboard.util import tensor_util
  from tensorboard.util import test_util
  from tensorboard.util import tb_logging
label_desc: Use image node_id 14 for calling the MockingEventAccumulatorTest obj's underlying member method code with example usage: obj.testOrphanedDataNotDiscardedIfFlagUnset() without return types