code: def test_network_driver_worker_independent(ray_start_2_cpus):
      # Create a network on the driver locally.
      sess1 = tf.Session()
      loss1, init1, _, _ = make_linear_network()
      ray.experimental.tf_utils.TensorFlowVariables(loss1, sess1)
      sess1.run(init1)
  
      net2 = ray.remote(NetActor).remote()
      weights2 = ray.get(net2.get_weights.remote())
  
      new_weights2 = ray.get(
          net2.set_and_get_weights.remote(net2.get_weights.remote())
      )
      assert weights2 == new_weights2
  
imports: from numpy.testing import assert_almost_equal
  import ray
  import ray.experimental.tf_utils
  from ray.rllib.utils.framework import try_import_tf
label_desc: Use image node_id 7 for calling a global function with example usage: test_network_driver_worker_independent(ray_start_2_cpus) without return types