class_docstr: Write me
      
class_docstr_tok: ["Write","me"]
code: def save_weights(self, filepath, overwrite=False):
      filename, extension = os.path.splitext(filepath)
      actor_filepath = filename + "_actor" + extension
      critic_filepath = filename + "_critic" + extension
      self.actor.save_weights(actor_filepath, overwrite=overwrite)
      self.critic.save_weights(critic_filepath, overwrite=overwrite)
  
imports: from __future__ import division
  from collections import deque
  import os
  import warnings
  import numpy
  import keras.backend
  import keras.optimizers
  from rl.core import Agent
  from rl.random import OrnsteinUhlenbeckProcess
  from rl.util import *
label_desc: Use image node_id 5 for calling the DDPGAgent obj's underlying member method code with example usage: obj.save_weights(filepath, overwrite) without return types