code: def testPolicySaverCompatibility(self):
      observation_spec = tensor_spec.TensorSpec(
          shape=(100,), dtype=tf.float32
      )
      action_spec = tensor_spec.TensorSpec(shape=(5,), dtype=tf.float32)
      time_step_tensor_spec = ts.time_step_spec(observation_spec)
      net = ActorNetwork(observation_spec, action_spec)
      net.create_variables()
      policy = actor_policy.ActorPolicy(
          time_step_tensor_spec, action_spec, net
      )
  
      sample = tensor_spec.sample_spec_nest(
          time_step_tensor_spec, outer_dims=(5,)
      )
  
      policy.action(sample)
  
      train_step = common.create_variable("train_step")
      saver = policy_saver.PolicySaver(policy, train_step=train_step)
      self.initialize_v1_variables()
  
      with self.cached_session():
          saver.save(
              os.path.join(FLAGS.test_tmpdir, "sequential_model")
          )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  from absl import flags
  import numpy
  import tensorflow
  import tensorflow_probability
  from tf_agents.distributions import utils
  from tf_agents.keras_layers import dynamic_unroll_layer
  from tf_agents.keras_layers import inner_reshape
  from tf_agents.networks import nest_map
  from tf_agents.networks import network
  from tf_agents.networks import sequential
  from tf_agents.policies import actor_policy
  from tf_agents.policies import policy_saver
  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 test_utils
label_desc: Use image node_id 10 for calling the SequentialTest obj's underlying member method code with example usage: obj.testPolicySaverCompatibility() without return types