Add advices on input target.

    :param Callable target: target from where add advices.
    :param advices: advices to weave on input target.
    :type advices: routine or list.
    :param bool ordered: ensure advices to add will be done in input order

def _add_advices(target, advices):
    """Add advices on input target.

    :param Callable target: target from where add advices.
    :param advices: advices to weave on input target.
    :type advices: routine or list.
    :param bool ordered: ensure advices to add will be done in input order
    """

    interception_fn = _get_function(target)

    target_advices = getattr(interception_fn, _ADVICES, [])
    target_advices += advices

    setattr(interception_fn, _ADVICES, target_advices)