def get(self, vtype, name, ignore_check = False):
        """Returns a number of proof variables of a certain type"""
        assert vtype in [Gen, ConstGen, Sec, Pub, ConstPub]

        if isinstance(name, str):
            assert self._check_name_ok(name) or ignore_check
            return self._get(vtype, name, ignore_check)

        if isinstance(name, list):
            assert all(map(self._check_name_ok, name)) or ignore_check
            return [self._get(vtype, n, ignore_check) for n in name]

        raise Exception("Wrong type of names: str or list(str)")
dataset/ETHPy150Open gdanezis/petlib/examples/genzkp.py/ZKProof.get/original