code: def main():
      p = Pipeline(
          [
              IdentityWithRvs().set_hyperparams_space(
                  HyperparameterSpace({"a": randint(low=2, high=5)})
              ),
              IdentityWithRvs().set_hyperparams_space(
                  HyperparameterSpace({"b": randint(low=100, high=400)})
              ),
          ]
      )
  
      samples: HyperparameterSamples = p.apply(rvs)
      print("p.apply(rvs) ==>")
      print(json.dumps(samples, indent=4))
  
      # or equivalently:
  
      samples: HyperparameterSamples = p.apply("_rvs")
      print("p.apply('_rvs') ==>")
      print(json.dumps(samples, indent=4))
  
file_path: Neuraxle/examples/operations/plot_apply_method.py
imports: import json
  from scipy.stats import randint
  from neuraxle.base import Identity
  from neuraxle.hyperparams.space import RecursiveDict, HyperparameterSamples, HyperparameterSpace
  from neuraxle.pipeline import Pipeline
label_desc: Use image node_id 2 for calling a global function with example usage: main() without return types