code: def transformed_space(space: Space):
      return build_required_space(
          space,
          type_requirement="real",
          shape_requirement="flattened",
          dist_requirement="linear",
      )
  
imports: import copy
  import pytest
  from orion.algo.base.registry import Registry, RegistryMapping
  from orion.algo.space import Space
  from orion.core.io.space_builder import SpaceBuilder
  from orion.core.worker.transformer import TransformedSpace, build_required_space
  from orion.core.worker.trial import Trial
label_desc: Use image node_id 2 for calling a global function with example usage: transformed_space(space) and returns: build_required_space