def VerifyType(arg, argname, legalTypes, ltd, errmsgExtra=''):
    if type(arg) not in legalTypes:
        m = _errmsg(argname, ltd, errmsgExtra)
        raise TypeError(m)
Verify the type of an argument.
dataset/ETHPy150Open skyostil/tracy/src/generator/Cheetah/Utils/VerifyType.py/VerifyType