original_docstring:  Determine which of the numbers in the list of possible frame
          chunks gives the best distribution of frames per process. 
docstring: Determine which of the numbers in the list of possible frame
  chunks gives the best distribution of frames per process.
docstring_tokens: Determine which of the numbers in the list of possible frame chunks gives the best distribution of frames per process .
code: def _find_best_frame_distribution(self, flist, nframes, nprocs, idx=False):
          """ Determine which of the numbers in the list of possible frame
          chunks gives the best distribution of frames per process. """
          multi_list: List[float] = [(nframes / float(v)) / nprocs for v in flist]
          min_val, closest_lower_idx = self._find_closest_lower(multi_list, 1)
          if idx:
              return flist[closest_lower_idx], closest_lower_idx
          return flist[closest_lower_idx]
code_tokens: def _find_best_frame_distribution ( self , flist , nframes , nprocs , idx = False ) : multi_list : List [ float ] = [ ( nframes / float ( v ) ) / nprocs for v in flist ] min_val , closest_lower_idx = self . _find_closest_lower ( multi_list , 1 ) if idx : return flist [ closest_lower_idx ] , closest_lower_idx return flist [ closest_lower_idx ]
short_docstring: Determine which of the numbers in the list of possible frame
  chunks gives the best distribution of frames per process.
short_docstring_tokens: Determine which of the numbers in the list of possible frame chunks gives the best distribution of frames per process .
comment: """ Determine which of the numbers in the list of possible frame
          chunks gives the best distribution of frames per process. """