def METHOD_NAME(self):
    with self.assertRaises(TypingError) as raises:
        compile_isolated(array_setitem_invalid_cast, ())
    errmsg = str(raises.exception)
    self.assertIn(
        _header_lead + " Function({})".format(operator.setitem),
        errmsg,
    )
    self.assertIn(
        "(array(float64, 1d, C), Literal[int](0), complex128)",
        errmsg,
    )