code: def test_flat_to_dict_hyperparams(
      flat: dict, expected_dic: dict, class_to_test
  ):
      from_flat_dic = class_to_test(flat)
      from_nested_dic = class_to_test(expected_dic)
  
      assert from_flat_dic == from_nested_dic
      assert from_flat_dic.to_flat_dict() == flat
      assert from_nested_dic.to_flat_dict() == flat
      assert from_nested_dic.to_nested_dict() == expected_dic
      assert from_flat_dic.to_nested_dict() == expected_dic
  
file_path: Neuraxle/testing_neuraxle/hyperparams/test_space.py
imports: import copy
  from collections import OrderedDict
  import pytest
  import scipy
  from neuraxle.hyperparams.distributions import Boolean, Choice, FixedHyperparameter, HyperparameterDistribution, LogNormal, LogUniform, Normal, PriorityChoice, Quantized, RandInt, Uniform
  from neuraxle.hyperparams.scipy_distributions import Gaussian, Poisson
  from neuraxle.hyperparams.space import FlatDict, HyperparameterSamples, HyperparameterSpace, RecursiveDict
label_desc: Use image node_id 1 for calling a global function with example usage: test_flat_to_dict_hyperparams(flat, expected_dic, class_to_test) without return types