def increment_lineno(node, n=1):
    if 'lineno' in node._attributes:
        node.lineno = getattr(node, 'lineno', 0) + n
    for child in walk(node):
        if 'lineno' in child._attributes:
            child.lineno = getattr(child, 'lineno', 0) + n
    return node
Testing a create with content
dataset/ETHPy150Open eBay/restcommander/play-1.2.4/python/Lib/ast.py/increment_lineno--crossover with--dataset/ETHPy150Open openshift/openshift-ansible/test/units/yedit_test.py/YeditTest.test_create_content