code: def load_csv(file, shape=None, normalize=False):
      
      value_list = []
      if six.PY2:
          for row in csv.reader(file):
              value_list.append(list(map(float, row)))
      elif six.PY34:
          for row in csv.reader([l.decode('utf-8') for l in file.readlines()]):
              value_list.append(list(map(float, row)))
      if shape is None:
          return numpy.array(value_list)
      else:
          return numpy.array(value_list).reshape(shape)
docs: Load CSV file.
  
      :param file: CSV file.
      :type file: file like object
      :param shape : data array is reshape to this shape.
      :type shape: tuple of int
  
      :return: numpy array