code: def test_has_children_mixin_apply_should_return_recursive_dict_to_direct_childrends():
      p = Pipeline(
          [
              (
                  "a",
                  Identity().set_hyperparams(
                      HyperparameterSamples({"hp": 0})
                  ),
              ),
              (
                  "b",
                  Identity().set_hyperparams(
                      HyperparameterSamples({"hp": 1})
                  ),
              ),
          ]
      )
  
      results = p.apply("_get_hyperparams", ra=None)
  
      assert results.to_flat_dict()["a__hp"] == 0
      assert results.to_flat_dict()["b__hp"] == 1
  
imports: import pytest
  from neuraxle.base import BaseStep
  from neuraxle.base import ExecutionContext
  from neuraxle.base import Identity, NonFittableMixin
  from neuraxle.data_container import DataContainer
  from neuraxle.hyperparams.space import HyperparameterSamples
  from neuraxle.pipeline import Pipeline
  from neuraxle.steps.flow import OptionalStep
  from neuraxle.steps.numpy import MultiplyByN
  from neuraxle.steps.output_handlers import OutputTransformerWrapper
label_desc: Use image node_id 7 for calling a global function with example usage: test_has_children_mixin_apply_should_return_recursive_dict_to_direct_childrends() without return types