code: def res2pos1(res):
      # Orient basis vectors in standard direction
      axis = res["axis"]
      bvs = res["basis_vectors"]
      bps = res["basis_projections"]
      signs = np.sign(bvs[0])
      res["basis_vectors"] = bvs * signs
      new_axes = [None] * bps.ndim
      n_comps = res["basis_projections"].shape[axis]
      new_axes[axis] = slice(0, n_comps)
      res["basis_projections"] = bps * signs[tuple(new_axes)]
      return res
  
imports: import numpy
  import pytest
  from nipy.io.api import load_image
  from nipy.testing import assert_almost_equal, assert_array_almost_equal, funcfile
  from ..pca import pca
label_desc: Use image node_id 5 for calling a global function with example usage: res2pos1(res) and returns: res