def set_source_info(directive, node):
    """
    copied from sphinx.util.nodes import set_source_info
    """
    node.source, node.line = directive.state_machine.get_source_and_line(
        directive.lineno)
