code: def center_streamlines(streamlines):
      """Move streamlines to the origin
  
      Parameters
      ----------
      streamlines : list
          List of 2D ndarrays of shape[-1]==3
  
      Returns
      -------
      new_streamlines : list
          List of 2D ndarrays of shape[-1]==3
      inv_shift : ndarray
          Translation in x,y,z to go back in the initial position
  
      """
      center = np.mean(np.concatenate(streamlines, axis=0), axis=0)
      return [s - center for s in streamlines], center
  
imports: from copy import deepcopy
  from warnings import warn
  import types
  from scipy.spatial.distance import cdist
  import numpy
  from nibabel.affines import apply_affine
  from nibabel.streamlines import ArraySequence
  from dipy.tracking.streamlinespeed import length, set_number_of_points
  from dipy.tracking.distances import bundles_distances_mdf
  import dipy.tracking.utils
  from dipy.core.geometry import dist_to_corner
  from dipy.core.interpolation import interpolate_vector_3d, interpolate_scalar_3d
label_desc: Use image node_id 3 for calling a global function with example usage: center_streamlines(streamlines) and returns: unknown,  center