code: def test_dataclass_from_json_to_json():
      root: RootDataclass = SOME_ROOT_DATACLASS
  
      root_as_dict = root.to_dict()
      root_as_json = to_json(root_as_dict)
      root_restored_dc = from_json(root_as_json)
  
      assert (
          SOME_METRIC_RESULTS_DATACLASS
          == root_restored_dc[SOME_FULL_SCOPED_LOCATION]
      )
      assert root == root_restored_dc
  
file_path: Neuraxle/testing_neuraxle/metaopt/test_automl_dataclasses.py
imports: import copy
  from typing import List, Type
  import pytest
  from neuraxle.base import TrialStatus
  from neuraxle.hyperparams.space import HyperparameterSamples
  from neuraxle.metaopt.data.vanilla import DEFAULT_CLIENT, DEFAULT_PROJECT, NULL_CLIENT, NULL_PROJECT, NULL_ROUND, NULL_TRIAL, NULL_TRIAL_SPLIT, RETRAIN_TRIAL_SPLIT_ID, BaseDataclass, ClientDataclass, MetricResultsDataclass, ProjectDataclass, RootDataclass, RoundDataclass, ScopedLocation, TrialDataclass, TrialSplitDataclass, as_named_odict, dataclass_2_id_attr, from_json, to_json
label_desc: Use image node_id 6 for calling a global function with example usage: test_dataclass_from_json_to_json() without return types