def base64_decodestring(instr):
    if six.PY3:
        b = salt.utils.to_bytes(instr)
        data = base64.decodebytes(b)
        try:
            return salt.utils.to_str(data)
        except UnicodeDecodeError:
            return data
    return base64.decodestring(instr)
Check for assertTrue(isinstance(a, b)) sentences
dataset/ETHPy150Open saltstack/salt/salt/modules/hashutil.py/base64_decodestring--crossover with--dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/hacking/checks.py/assert_true_instance