def sample_paths(
        policy_params,
        max_samples,
        max_path_length=np.inf):
    singleton_pool.run_each(
        _worker_set_policy_params,
        [(policy_params,)] * singleton_pool.n_parallel
    )
    return singleton_pool.run_collect(
        _worker_collect_one_path,
        threshold=max_samples,
        args=(max_path_length,),
        show_prog_bar=True
    )
Context manager which resolves a JSON ``ref`` and enters the
dataset/ETHPy150Open rllab/rllab/rllab/sampler/parallel_sampler.py/sample_paths--crossover with--dataset/ETHPy150Open danielyule/hearthbreaker/jsonschema/validators.py/RefResolver.resolving