code: def test_space_converter(space, expected_space):
      ray_space = RaySpaceConverterFactory.get_space_converter(
          space.__class__.__name__
      ).convert(space)
      assert type(ray_space) == type(expected_space)
  
imports: import pytest
  from ray import tune
  from autogluon.common import space
  from autogluon.core.hpo.space_converter import RaySpaceConverterFactory
label_desc: Use image node_id 1 for calling a global function with example usage: test_space_converter(space, expected_space) without return types