code: def matrix_to_vector(matrix, system):
      """
      Converts a vector in matrix form to a Vector instance.
  
      It is assumed that the elements of the Matrix represent the
      measure numbers of the components of the vector along basis
      vectors of 'system'.
  
      Parameters
      ==========
  
      matrix : SymPy Matrix, Dimensions: (3, 1)
          The matrix to be converted to a vector
  
      system : CoordSys3D
          The coordinate system the vector is to be defined in
  
      Examples
      ========
  
      >>> from sympy import ImmutableMatrix as Matrix
      >>> m = Matrix([1, 2, 3])
      >>> from sympy.vector import CoordSys3D, matrix_to_vector
      >>> C = CoordSys3D('C')
      >>> v = matrix_to_vector(m, C)
      >>> v
      C.i + 2*C.j + 3*C.k
      >>> v.to_matrix(C) == m
      True
  
      """
  
      outvec = Vector.zero
      vects = system.base_vectors()
      for i, x in enumerate(matrix):
          outvec += x * vects[i]
      return outvec
  
imports: from sympy.vector.coordsysrect import CoordSys3D
  from sympy.vector.deloperator import Del
  from sympy.vector.scalar import BaseScalar
  from sympy.vector.vector import Vector, BaseVector
  from sympy.vector.operators import gradient, curl, divergence
  from sympy.core.function import diff
  from sympy.core.singleton import S
  from sympy.integrals.integrals import integrate
  from sympy.simplify.simplify import simplify
  from sympy.core import sympify
  from sympy.vector.dyadic import Dyadic
label_desc: Use image node_id 8 for calling a global function with example usage: matrix_to_vector(matrix, system) and returns: outvec