@staticmethod
def _get_module_status(status, i):
    """Get the status dict for the module with the given pipeline index.

        Parameters
        ----------
        status : reV.pipeline.status.Status
            reV job status object.
        i : int
            pipeline index of desired module.

        Returns
        -------
        out : dict
            Status dictionary for the module with pipeline index i.
        """
    for module_status in status.data.values():
        i_current = module_status.get('pipeline_index', -99)
        if str(i) == str(i_current):
            out = module_status
            break
    return out
