code: def to_sympy_column_matrix(matrix):
      
      matrix = to_sympy_matrix(matrix)
      if matrix.cols == 1:
          return matrix
      elif matrix.rows == 1:
          return matrix.T
      else:
          raise ValueError('Cannot convert {0!r} to a column matrix'.format(matrix))
docs: Converts a sympy matrix to a column matrix (i.e. transposes it if it was row matrix)
      Raises ValueError if matrix provided is not a vector
      :param matrix: a vector to be converted to column
      :return: