class_docstr: A class used for accessing tfdbg v2 DebugEvent data on local filesystem.
  
  This class is a short-term hack, mirroring the EventMultiplexer for the main
  TensorBoard plugins (e.g., scalar, histogram and graphs.) As such, it only
  implements the methods relevant to the Debugger V2 pluggin.
  
  TODO(cais): Integrate it with EventMultiplexer and use the integrated class
  from MultiplexerDataProvider for a single path of accessing debugger and
  non-debugger data.
code: def _checkBeginEndIndices(self, begin, end, total_count):
      if begin < 0:
          raise errors.InvalidArgumentError(
              "Invalid begin index (%d)" % begin
          )
      if end > total_count:
          raise errors.InvalidArgumentError(
              "end index (%d) out of bounds (%d)" % (end, total_count)
          )
      if end >= 0 and end < begin:
          raise errors.InvalidArgumentError(
              "end index (%d) is unexpectedly less than begin index (%d)"
              % (end, begin)
          )
      if end < 0:  # This means all digests.
          end = total_count
      return end
  
imports: import threading
  from tensorboard import errors
label_desc: Use image node_id 7 for calling the DebuggerV2EventMultiplexer obj's underlying member method code with example usage: obj._checkBeginEndIndices(begin, end, total_count) and returns: end