Fire hooks on newly created element.

    For each newly created element we will try to find defined hooks and execute them.

    :Args:
      - ctx (:class:`Context`): Context object
      - document (:class:`ooxml.doc.Document`): Document object
      - elem (:class:`ooxml.doc.Element`): Element which we serialized
      - element (Element): lxml element which we created
      - hooks (list): List of hooks

def fire_hooks(ctx, document, elem, element, hooks):
    """Fire hooks on newly created element.

    For each newly created element we will try to find defined hooks and execute them.

    :Args:
      - ctx (:class:`Context`): Context object
      - document (:class:`ooxml.doc.Document`): Document object
      - elem (:class:`ooxml.doc.Element`): Element which we serialized
      - element (Element): lxml element which we created
      - hooks (list): List of hooks
    """

    if not hooks:
        return

    for hook in hooks:
        hook(ctx, document, elem, element)