def _check_vidcam(self, vidcam):
        value = int(vidcam)
        if value < 0 or value > 2:
            raise argparse.ArgumentTypeError("VIDCAM must be a number " +
                "between 0 and 2")
        return value
dataset/ETHPy150Open phrack/ShootOFF-legacy/configurator.py/Configurator._check_vidcam/original