docs: def weave(target, advices, pointcut=None, depth=1, public=False):
          """Weave advices such as Advice objects."""
  
          advices = (
              advice if isinstance(advice, Advice) else Advice(advice)
              for advice in advices
          )
  
          weave(
              target=target, advices=advices, pointcut=pointcut,
              depth=depth, public=public
          )