class_docstr: Dictionary-like object representing an SALib Problem specification.
  
  Attributes
  ----------
  samples : np.array, of generated samples
  results : np.array, of evaluations (i.e., model outputs)
  analysis : np.array or dict, of sensitivity indices
code: def _collect_results(self, res):
      res_shape = res[0].shape
      if len(res_shape) > 1:
          res_shape = (len(self._samples), *res_shape[1:])
      else:
          res_shape = len(self._samples)
  
      final_res = np.empty(res_shape)
  
      # Collect results
      # Cannot enumerate over this as the length
      # of individual results may vary
      i = 0
      for r in res:
          r_len = len(r)
          final_res[i : i + r_len] = r
          i += r_len
  
      return final_res
  
imports: import warnings
  import importlib
  from types import MethodType
  from functools import partial, wraps
  from multiprocess import Pool, cpu_count
  import numpy
  import SALib.sample
  import SALib.analyze
  from SALib.util import avail_approaches
  from SALib.util.results import ResultDict
label_desc: Use image node_id 19 for calling the ProblemSpec obj's underlying member method code with example usage: obj._collect_results(res) and returns: final_res