@staticmethod
def _probe_wrapper(func, tgen, p):
    """
        Wrapper function that point to constraint function.

        :param func: constraint function.
        :param args: positional arguments to pass on to constraint function
        :param kwargs: key arguments to pass on to constraint function
        :param p: annealer state used to calculate the probe parameters
        :return: A new probe solution based on tgen and a random function
        """
    return func(p, tgen)
