 classes, combining spatial
information with array-based storage.</p>
<p>The function performs several operations based on the input data type:</p><ul><li><p>For matrix input: It determines the correct orientation (voxels x time or time x voxels)
    and reshapes accordingly. If necessary, it adds a 4th dimension to the space object.</p></li>
<li><p>For vector input: It reshapes the data to match the dimensions specified in the space object.</p></li>
<li><p>For array input: It ensures the dimensions match t