code: def testSavedModel(self):
      path = os.path.join(self.get_temp_dir(), "saved_policy")
      saver = policy_saver.PolicySaver(self.tf_policy)
      saver.save(path)
  
      eager_py_policy = py_tf_eager_policy.SavedModelPyTFEagerPolicy(
          path, self.time_step_spec, self.action_spec
      )
      rng = np.random.RandomState()
      sample_time_step = array_spec.sample_spec_nest(
          self.time_step_spec, rng
      )
      batched_sample_time_step = nest_utils.batch_nested_array(
          sample_time_step
      )
  
      original_action = self.tf_policy.action(batched_sample_time_step)
      unbatched_original_action = nest_utils.unbatch_nested_tensors(
          original_action
      )
      original_action_np = tf.nest.map_structure(
          lambda t: t.numpy(), unbatched_original_action
      )
      saved_policy_action = eager_py_policy.action(sample_time_step)
  
      tf.nest.assert_same_structure(
          saved_policy_action.action, self.action_spec
      )
  
      np.testing.assert_array_almost_equal(
          original_action_np.action, saved_policy_action.action
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  from absl.testing import parameterized
  import numpy
  import tensorflow
  from tf_agents.agents.ddpg import actor_network
  from tf_agents.environments import batched_py_environment
  from tf_agents.environments import random_py_environment
  from tf_agents.policies import actor_policy
  from tf_agents.policies import policy_saver
  from tf_agents.policies import py_tf_eager_policy
  from tf_agents.policies import random_tf_policy
  from tf_agents.specs import array_spec
  from tf_agents.specs import tensor_spec
  from tf_agents.trajectories import time_step
  from tf_agents.utils import common
  from tf_agents.utils import nest_utils
  from tf_agents.utils import test_utils
label_desc: Use image node_id 2 for calling the SavedModelPYTFEagerPolicyTest obj's underlying member method code with example usage: obj.testSavedModel() without return types