code: def add_replay_buffer_post_step(
      replay_buffer: ReplayBuffer,
      env: gym.Env,
      replay_buffer_inserter=None,
  ):
      """
      Simply add transitions to replay_buffer.
      """
  
      if replay_buffer_inserter is None:
          replay_buffer_inserter = make_replay_buffer_inserter(env)
  
      def post_step(transition: Transition) -> None:
          replay_buffer_inserter(replay_buffer, transition)
  
      return post_step
  
imports: import logging
  import gym
  from reagent.gym.preprocessors import make_replay_buffer_inserter
  from reagent.gym.types import Transition
  from reagent.replay_memory.circular_replay_buffer import ReplayBuffer
label_desc: Use image node_id 1 for calling a global function with example usage: add_replay_buffer_post_step(replay_buffer, env, replay_buffer_inserter) and returns: post_step