class_docstr: R2D2 learner.
class_docstr_tok: ["R2D2","learner","."]
code: def restore(self, state: TrainingState):
      self._state = utils.replicate_in_all_devices(state)
  
imports: import functools
  import time
  from typing import Dict, Iterator, List, NamedTuple, Optional, Tuple
  from absl import logging
  import acme
  from acme.adders import reverb
  from acme.agents.jax.r2d2 import networks
  from acme.jax import networks
  from acme.jax import utils
  from acme.utils import async_utils
  from acme.utils import counting
  from acme.utils import loggers
  import jax
  import jax.numpy
  import optax
  import reverb
  import rlax
  import tree
label_desc: Use image node_id 5 for calling the R2D2Learner obj's underlying member method code with example usage: obj.restore(state) without return types