def METHOD_NAME(SType):
    # Test that we dont attempt to differentiate through the samples
    # by testing a model that would fail in that case because its
    # nondifferentiable.
    hi = nk.hilbert.Spin(s=1 / 2, N=5)
    ma = nk.models.LogStateVector(hi)
    sa = nk.sampler.MetropolisLocal(hi, n_chains=2, reset_chains=False)
    vs = nk.vqs.MCState(sa, ma, n_samples=2, n_discard_per_chain=0)
    S = SType(vs, holomorphic=True)
    S @ vs.parameters