def mp_replicate(orccls, x, rngcls, seed):
    """
    Wrap `Oracle.g` in a top-level function for use with multiprocessing.

    Parameters
    ----------
    orccls : Oracle class
    x : tuple of int
    rngcls : random.Random class
    seed : tuple of int

    Returns
    -------
    isfeas : bool
    objvals : tuple of float

    See also
    --------
    Oracle.replicate
    """
    rng = rngcls(seed)
    orc = orccls(rng)
    orc.set_crnflag(False)
    isfeas, objvals = orc.g(x, rng)
    return isfeas, objvals
