class_docstr: Wrapper around a replay buffer in order to use HER.
  This implementation is inspired by to the one found in https://github.com/NervanaSystems/coach/.
  
  :param replay_buffer: (ReplayBuffer)
  :param n_sampled_goal: (int) The number of artificial transitions to generate for each actual transition
  :param goal_selection_strategy: (GoalSelectionStrategy) The method that will be used to generate
      the goals for the artificial transitions.
  :param wrapped_env: (HERGoalEnvWrapper) the GoalEnv wrapped using HERGoalEnvWrapper,
      that enables to convert observation to dict, and vice versa
class_docstr_tok: ["Wrapper","around","a","replay","buffer","in","order","to","use","HER",".","This","implementation","is","inspired","by","to","the","one","found","in","https",":","\/\/github.com\/NervanaSystems\/coach\/",".",":","param","replay_buffer",":","(","ReplayBuffer",")",":","param","n_sampled_goal",":","(","int",")","The","number","of","artificial","transitions","to","generate","for","each","actual","transition",":","param","goal_selection_strategy",":","(","GoalSelectionStrategy",")","The","method","that","will","be","used","to","generate","the","goals","for","the","artificial","transitions",".",":","param","wrapped_env",":","(","HERGoalEnvWrapper",")","the","GoalEnv","wrapped","using","HERGoalEnvWrapper",",","that","enables","to","convert","observation","to","dict",",","and","vice","versa"]
code: def sample(self, *args, **kwargs):
      return self.replay_buffer.sample(*args, **kwargs)
  
file_path: stable-baselines/stable_baselines/her/replay_buffer.py
imports: import copy
  from enum import Enum
  import numpy
label_desc: Use image node_id 3 for calling the HindsightExperienceReplayWrapper obj's underlying member method code with example usage: obj.sample() and returns: self