code: def test_recursive_dict_to_flat_different_separator():
      dict_values = {"hp": 1, "stepa": {"hp": 2, "stepb": {"hp": 3}}}
      r = RecursiveDict(separator="__", **dict_values)
      r["stepa"] = RecursiveDict(r["stepa"], separator=".")
      r["stepa"]["stepb"] = RecursiveDict(
          r["stepa"]["stepb"], separator="$$$"
      )
  
      nested_r = r.to_nested_dict()
      r = r.to_flat_dict()
  
      expected_dict_values = {
          "hp": 1,
          "stepa__hp": 2,
          "stepa__stepb.hp": 3,
      }
      assert r == expected_dict_values
      assert nested_r == dict_values
  
file_path: Neuraxle/testing_neuraxle/test_recursive_dict.py
imports: import pytest
  from neuraxle.hyperparams.space import RecursiveDict, HyperparameterSamples
label_desc: Use image node_id 2 for calling a global function with example usage: test_recursive_dict_to_flat_different_separator() without return types