code: def __init__(
      self,
      create_env: Callable[[], "TradingEnvironment"],
      policy_network: tf.keras.Model = None,
  ):
      temp_env = create_env()
  
      self.n_actions = temp_env.action_space.n
      self.observation_shape = temp_env.observation_space.shape
  
      self.policy_network = (
          policy_network or self._build_policy_network()
      )
  
      self.target_network = tf.keras.models.clone_model(
          self.policy_network
      )
      self.target_network.trainable = False
  
file_path: tensortrade/tensortrade/agents/parallel/parallel_dqn_model.py
imports: from deprecated import deprecated
  import random
  import numpy
  import tensorflow
  from typing import Callable
label_desc: Use image node_id 1 to create a new ParallelDQNModel object  with example: obj = ParallelDQNModel(create_env, policy_network)