def METHOD_NAME(self):
    """Parsing malicious expressions."""
    expr = '__import__("sys").stdout.write("unsafe input.")'
    with self.assertRaises(PulseError):
        parsed_expr = parse_string_expr(expr)
        parsed_expr()