class_docstr: Write me
      
code: def get_weights_flat(self, weights):
      weights_flat = np.zeros(self.num_weights)
  
      pos = 0
      for i_layer, size in enumerate(self.sizes):
          weights_flat[pos : pos + size] = weights[i_layer].flatten()
          pos += size
      return weights_flat
  
imports: from __future__ import division
  from collections import deque
  from copy import deepcopy
  import numpy
  import keras.backend
  from keras.models import Model
  from rl.core import Agent
  from rl.util import *
label_desc: Use image node_id 5 for calling the CEMAgent obj's underlying member method code with example usage: obj.get_weights_flat(weights) and returns: weights_flat