code: def restore(self, path: str, **kwargs):
      actor_filename: str = kwargs.get("actor_filename", None)
      critic_filename: str = kwargs.get("critic_filename", None)
  
      if not actor_filename or not critic_filename:
          raise ValueError(
              "The `restore` method requires a directory `path`, a `critic_filename`, and an `actor_filename`."
          )
  
      self.actor_network = tf.keras.models.load_model(
          path + actor_filename
      )
      self.critic_network = tf.keras.models.load_model(
          path + critic_filename
      )
  
file_path: tensortrade/tensortrade/agents/a2c_agent.py
imports: from deprecated import deprecated
  import random
  import numpy
  import tensorflow
  from collections import namedtuple
  from tensortrade.agents import Agent, ReplayMemory
  from datetime import datetime
label_desc: Use image node_id 5 for calling the A2CAgent obj's underlying member method code with example usage: obj.restore(path) without return types