def METHOD_NAME(self):
    mod = self.make_module("""
        HPyDef_METH(f, "f", HPyFunc_O)
        static HPy f_impl(HPyContext *ctx, HPy self, HPy arg)
        {
            if (HPyBytes_Check(ctx, arg))
                return HPy_Dup(ctx, ctx->h_True);
            return HPy_Dup(ctx, ctx->h_False);
        }
        @EXPORT(f)
        @INIT
    """)
    class MyBytes(bytes):
        pass
    assert mod.f(b'hello') is True
    assert mod.f('hello') is False
    assert mod.f(MyBytes(b'hello')) is True