def METHOD_NAME(self):
    # Tests the printf() method
    value = 123456
    code = f"""if 1:
    from numba import njit, types
    from numba.extending import intrinsic
    @intrinsic
    def printf(tyctx, int_arg):
        sig = types.void(int_arg)
        def codegen(cgctx, builder, sig, llargs):
            cgctx.printf(builder, \"%d\\n\", *llargs)
        return sig, codegen
    @njit
    def foo():
        printf({value})
    foo()
    """
    out, _ = run_in_subprocess(code)
    self.assertIn(str(value), out.decode())