code: def test_sync_params(self):
      mock_learner = mock.MagicMock()
      frame_count = 428
      params = self.initial_params
      mock_learner.params_for_actor.return_value = frame_count, params
      traj_len = 10
      actor = actor_lib.Actor(
          agent=self.agent,
          env=self.env,
          learner=mock_learner,
          unroll_length=traj_len,
      )
      received_frame_count, received_params = actor.pull_params()
      self.assertEqual(received_frame_count, frame_count)
      tree.assert_same_structure(received_params, params)
      tree.map_structure(
          np.testing.assert_array_almost_equal, received_params, params
      )
  
file_path: dm-haiku/examples/impala/actor_test.py
imports: from unittest import mock
  from absl.testing import absltest
  from bsuite.environments import catch
  import dm_env
  from examples.impala import actor
  from examples.impala import agent
  from examples.impala import haiku_nets
  from examples.impala import learner
  from examples.impala import util
  import jax
  import numpy
  import tree
label_desc: Use image node_id 3 for calling the CatchTest obj's underlying member method code with example usage: obj.test_sync_params() without return types