def METHOD_NAME(self, query):
    """
    Apply this random sample to a FlowMachine Query object
    Parameters
    ----------
    query : Query
        FlowMachine Query object to be sampled
    Returns
    -------
    Random
    """
    return query.random_sample(
        sampling_method=self.sampling_method,
        size=self.size,
        fraction=self.fraction,
        estimate_count=self.estimate_count,
        seed=self.seed,
    )