code: def test_tf_worker_with_default_session(self):
      with TFTrainer(snapshot_config):
          tf_worker = TFWorkerWrapper()
          worker = DefaultWorker(
              seed=1, max_episode_length=100, worker_number=1
          )
          worker.update_env(GymEnv(DummyBoxEnv()))
          tf_worker._inner_worker = worker
          tf_worker.worker_init()
          assert tf_worker._sess == tf.compat.v1.get_default_session()
      assert tf_worker._sess._closed
  
file_path: garage/tests/garage/tf/samplers/test_tf_worker.py
imports: import tensorflow
  from garage.envs import GymEnv
  from garage.sampler import DefaultWorker
  from garage.tf.samplers import TFWorkerWrapper
  from garage.trainer import TFTrainer
  from tests.fixtures import snapshot_config
  from tests.fixtures.envs.dummy import DummyBoxEnv
label_desc: Use image node_id 1 for calling the TestTFWorker obj's underlying member method code with example usage: obj.test_tf_worker_with_default_session() without return types