docstr: Adds a frame to the current video output.
docstr_tok: ["Adds","a","frame","to","the","current","video","output","."]
code: def _update_recording(self, frame, config):
      """Adds a frame to the current video output."""
      # pylint: disable=redefined-variable-type
      should_record = config["is_recording"]
  
      if should_record:
          if not self.is_recording:
              self.is_recording = True
              print(
                  "Starting recording using %s",
                  self.video_writer.current_output().name(),
              )
          self.video_writer.write_frame(frame)
      elif self.is_recording:
          self.is_recording = False
          self.video_writer.finish()
          print("Finished recording")
  
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 8 for calling the Beholder obj's underlying member method code with example usage: obj._update_recording(frame, config) without return types