code: def test_dataclass_tree():
      base_scope = ScopedLocation()
      expected_result: List[ScopedLocation] = []
      for dc in ALL_DATACLASSES:
          base_scope = base_scope.fill_to_dc(dc)
          expected_result.append(base_scope)
  
      tree = SOME_ROOT_DATACLASS.tree()
  
      assert tree == expected_result
  
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 9 for calling a global function with example usage: test_dataclass_tree() without return types