code: def __init__(self, logdir):
      self.PLUGIN_LOGDIR = logdir + "/plugins/" + PLUGIN_NAME
  
      self.is_recording = False
      self.video_writer = video_writing.VideoWriter(
          self.PLUGIN_LOGDIR,
          outputs=[
              video_writing.FFmpegVideoOutput,
              video_writing.PNGVideoOutput,
          ],
      )
  
      self.last_image_shape = []
      self.last_update_time = time.time()
      self.config_last_modified_time = -1
      self.previous_config = dict(DEFAULT_CONFIG)
  
      if not os.path.exists(self.PLUGIN_LOGDIR + "/config.pkl"):
          os.makedirs(self.PLUGIN_LOGDIR)
          write_pickle(
              DEFAULT_CONFIG,
              "{}/{}".format(self.PLUGIN_LOGDIR, CONFIG_FILENAME),
          )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from ..proto.summary_pb2 import Summary
  from ..proto.summary_pb2 import SummaryMetadata
  from ..proto.tensor_pb2 import TensorProto
  from ..proto.tensor_shape_pb2 import TensorShapeProto
  import os
  import time
  import numpy
  from .file_system_tools import read_pickle, write_pickle, write_file
  from .shared_config import PLUGIN_NAME, TAG_NAME, SUMMARY_FILENAME, DEFAULT_CONFIG, CONFIG_FILENAME, SUMMARY_COLLECTION_KEY_NAME, SECTION_INFO_FILENAME
  from .None import video_writing
label_desc: Use image node_id 1 to create a new Beholder object from inherited base classes: object with example: obj = Beholder(logdir)