original_docstring: Choose clip offsets for the video in a given mode.
  
          Args:
              num_frames (int): Total number of frame in the video.
              proposals (list | None): Proposals fetched.
                  It is set to None in test mode.
  
          Returns:
              np.ndarray: Sampled frame indices.
          
docstring: Choose clip offsets for the video in a given mode.
docstring_tokens: Choose clip offsets for the video in a given mode .
code: def _sample_clips(self, num_frames, proposals):
          """Choose clip offsets for the video in a given mode.
  
          Args:
              num_frames (int): Total number of frame in the video.
              proposals (list | None): Proposals fetched.
                  It is set to None in test mode.
  
          Returns:
              np.ndarray: Sampled frame indices.
          """
          if self.mode == 'test':
              clip_offsets = self._get_test_clips(num_frames)
          else:
              assert proposals is not None
              clip_offsets = self._get_train_clips(num_frames, proposals)
  
          return clip_offsets
code_tokens: def _sample_clips ( self , num_frames , proposals ) : if self . mode == 'test' : clip_offsets = self . _get_test_clips ( num_frames ) else : assert proposals is not None clip_offsets = self . _get_train_clips ( num_frames , proposals ) return clip_offsets
short_docstring: Choose clip offsets for the video in a given mode.
short_docstring_tokens: Choose clip offsets for the video in a given mode .
comment: """Choose clip offsets for the video in a given mode.
  
          Args:
              num_frames (int): Total number of frame in the video.
              proposals (list | None): Proposals fetched.
                  It is set to None in test mode.
  
          Returns:
              np.ndarray: Sampled frame indices.
          """