class_docstr: Class for video byte-level reading with ffmpeg.
class_docstr_tok: ["Class","for","video","byte-level","reading","with","ffmpeg","."]
docstr: Closes the reader terminating the process, if is still open.
docstr_tok: ["Closes","the","reader","terminating","the","process",",","if","is","still","open","."]
code: def close(self, delete_lastread=True):
      """Closes the reader terminating the process, if is still open."""
      if self.proc:
          if self.proc.poll() is None:
              self.proc.terminate()
              self.proc.stdout.close()
              self.proc.stderr.close()
              self.proc.wait()
          self.proc = None
      if delete_lastread and hasattr(self, "last_read"):
          del self.last_read
  
imports: import os
  import re
  import subprocess
  import warnings
  import numpy
  from moviepy.config import FFMPEG_BINARY
  from moviepy.tools import convert_to_seconds, cross_platform_popen_params
label_desc: Use image node_id 7 for calling the FFMPEG_VideoReader obj's underlying member method code with example usage: obj.close(delete_lastread) without return types