docstr: Draw `n` number of bootstrap samples from the posterior_samples.
  Args
  ----
  n : int
      The number of bootstrap samples to draw
docstr_tok: ["Draw","`","n","`","number","of","bootstrap","samples","from","the","posterior_samples",".","Args","--","--","n",":","int","The","number","of","bootstrap","samples","to","draw"]
code: def _bootstrap(num_samples, posterior_samples, n):
      """Draw `n` number of bootstrap samples from the posterior_samples.
      Args
      ----
      n : int
          The number of bootstrap samples to draw
      """
      if n < 2:
          raise ForecasterException(
              "Error: Number of bootstrap draws must be at least 2"
          )
  
      sample_idx = np.random.choice(
          range(num_samples), size=n, replace=True
      )
      bootstrap_samples_dict = {}
      for k, v in posterior_samples.items():
          bootstrap_samples_dict[k] = v[sample_idx]
  
      return bootstrap_samples_dict
  
file_path: orbit/orbit/forecaster/full_bayes.py
imports: import numpy
  import pandas
  from functools import partial
  from ..constants.constants import PredictMethod, PredictionKeys
  from ..exceptions import ForecasterException
  from ..utils.predictions import prepend_date_column, compute_percentiles
  from .forecaster import Forecaster
label_desc: Use image node_id 4 for calling the FullBayesianForecaster obj's underlying member method code with example usage: obj._bootstrap(num_samples, posterior_samples, n) and returns: bootstrap_samples_dict