code: def test_dataclass_getters(scope_slice_len: int):
      expected_dataclass: BaseDataclass = ALL_DATACLASSES[
          scope_slice_len
      ]
      dataclass_type: Type[BaseDataclass] = expected_dataclass.__class__
      sliced_scope = SOME_FULL_SCOPED_LOCATION[:dataclass_type]
      assert len(sliced_scope) == scope_slice_len
  
      sliced_scope = SOME_FULL_SCOPED_LOCATION[:scope_slice_len]
      assert len(sliced_scope) == scope_slice_len
  
      dc = SOME_ROOT_DATACLASS[sliced_scope]
  
      assert isinstance(dc, dataclass_type)
      assert dc.get_id() == expected_dataclass.get_id()
      assert dc.get_id() == sliced_scope[scope_slice_len - 1]
      assert dc.get_id() == SOME_FULL_SCOPED_LOCATION[dataclass_type]
      assert dc == expected_dataclass
  
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 1 for calling a global function with example usage: test_dataclass_getters(scope_slice_len) without return types