code: def vector_serializer(vector):
      """
      Return given vector in serializable mode.
  
      :param vector: the given vector
      :type: list or numpy array
      :retun: a serializable format of vector
      """
      if isinstance(vector, numpy.ndarray):
          vector = vector.tolist()
      return vector
  
imports: from __future__ import division
  import sys
  import math
  import numpy
  import re
  from .pycm_param import *
  from .pycm_error import pycmMatrixError
  from warnings import warn
  from functools import wraps
label_desc: Use image node_id 34 for calling a global function with example usage: vector_serializer(vector) and returns: vector