code: def test_sample_goal(her, episode):
      assert her._sample_goal(episode, 8) == 9
  
file_path: coach/rl_coach/tests/memories/test_hindsight_experience_replay.py
imports: import os
  import sys
  from rl_coach.memories.episodic.episodic_hindsight_experience_replay import EpisodicHindsightExperienceReplayParameters
  from rl_coach.spaces import GoalsSpace, ReachingGoal
  import pytest
  import numpy
  from rl_coach.core_types import Transition, Episode
  from rl_coach.memories.memory import MemoryGranularity
  from rl_coach.memories.episodic.episodic_hindsight_experience_replay import EpisodicHindsightExperienceReplay, HindsightGoalSelectionMethod
label_desc: Use image node_id 3 for calling a global function with example usage: test_sample_goal(her, episode) without return types