code: def make_replay_buffer_inserter(env: gym.Env) -> ReplayBufferInserter:
      if HAS_RECSIM and isinstance(env.unwrapped, RecSimGymEnv):
          return RecSimReplayBufferInserter.create_for_env(env)
      return BasicReplayBufferInserter()
  
file_path: ReAgent/reagent/gym/preprocessors/replay_buffer_inserters.py
imports: import logging
  from typing import Callable, List, Tuple
  import gym
  import numpy
  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: make_replay_buffer_inserter(env) and returns: BasicReplayBufferInserter, RecSimReplayBufferInserter