class_docstr: Implement FFmpeg wrapper for video compression defence based on H.264/MPEG-4 AVC.
  
  Video compression uses H.264 video encoding. The video quality is controlled with the constant rate factor
  parameter. More information on the constant rate factor: https://trac.ffmpeg.org/wiki/Encode/H.264.
class_docstr_tok: ["Implement","FFmpeg","wrapper","for","video","compression","defence","based","on","H.264\/MPEG-4","AVC",".","Video","compression","uses","H.264","video","encoding",".","The","video","quality","is","controlled","with","the","constant","rate","factor","parameter",".","More","information","on","the","constant","rate","factor",":","https",":","\/\/trac.ffmpeg.org\/wiki\/Encode\/H.264","."]
code: def _check_params(self) -> None:
      if not (
          isinstance(self.constant_rate_factor, int)
          and 0 <= self.constant_rate_factor < 52
      ):
          raise ValueError(
              "Constant rate factor must be an integer in the range [0, 51]."
          )
  
      if not isinstance(self.verbose, bool):
          raise ValueError(
              "The argument `verbose` has to be of type bool."
          )
  
file_path: adversarial-robustness-toolbox/art/defences/preprocessor/video_compression.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import logging
  import os
  from tempfile import TemporaryDirectory
  from typing import Optional, Tuple
  import warnings
  import numpy
  from tqdm.auto import tqdm
  from art import config
  from art.defences.preprocessor.preprocessor import Preprocessor
label_desc: Use image node_id 3 for calling the VideoCompression obj's underlying member method code with example usage: obj._check_params() without return types