@staticmethod
def _iterate_by_losses(losses: {}, callback: callable) ->None:
    """
        Internal method for unify iteration by losses dict

        :param losses: dic of losses
        :param callback: callable, that call for every loss value and get params loss_name and loss_values: ``callback(name: str, values: np.ndarray)``
        """
    for m, v in losses.items():
        callback(m, v)
