code: def _compute_n_frames_high_res(frame_times, min_onset, oversampling):
      """Compute the number of frames after upsampling."""
      n_frames = frame_times.size
      mini, maxi = _extrema(frame_times)
      n_frames_high_res = (n_frames - 1) * 1.0 / (maxi - mini)
      n_frames_high_res *= (
          maxi * (1 + 1.0 / (n_frames - 1)) - mini - min_onset
      ) * oversampling
      return n_frames_high_res + 1
  
imports: import warnings
  from collections.abc import Iterable
  import numpy
  from scipy.stats import gamma
  from nilearn._utils import fill_doc
label_desc: Use image node_id 12 for calling a global function with example usage: _compute_n_frames_high_res(frame_times, min_onset, oversampling) and returns: unknown