code: def to_matrix_vector(transform):
      """Split a transform into it's matrix and vector components.
  
      The transformation must be represented in homogeneous coordinates
      and is split into it's rotation matrix and translation vector
      components.
  
      Parameters
      ----------
      transform : ndarray
          Transform matrix in homogeneous coordinates.  Example, a 4x4
          transform representing rotations and translations in 3
          dimensions.
  
      Returns
      -------
      matrix, vector : ndarray
          The matrix and vector components of the transform matrix.  For
          an NxN transform, matrix will be N-1xN-1 and vector will be
          1xN-1.
  
      See Also
      --------
      from_matrix_vector
  
      """
  
      ndimin = transform.shape[0] - 1
      ndimout = transform.shape[1] - 1
      matrix = transform[0:ndimin, 0:ndimout]
      vector = transform[0:ndimin, ndimout]
      return matrix, vector
  
imports: import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: to_matrix_vector(transform) and returns: matrix,  vector