code: def extract_shared_objects_from_agent(agent):
      return dict(
          (attr, async_.as_shared_objects(getattr(agent, attr)))
          for attr in agent.shared_attributes
      )
  
file_path: chainerrl/chainerrl/experiments/train_agent_async.py
imports: import logging
  import multiprocessing
  import os
  from chainerrl.experiments.evaluator import AsyncEvaluator
  from chainerrl.misc import async_
  from chainerrl.misc import random_seed
label_desc: Use image node_id 2 for calling a global function with example usage: extract_shared_objects_from_agent(agent) and returns: dict