code: def increment_lineno(node, n=1):
      """
      Increment the line number and end line number of each node in the tree
      starting at *node* by *n*. This is useful to "move code" to a different
      location in a file.
      """
      for child in walk(node):
          if "lineno" in child._attributes:
              child.lineno = (getattr(child, "lineno", 0) or 0) + n
          if "end_lineno" in child._attributes:
              child.end_lineno = (
                  getattr(child, "end_lineno", 0) or 0
              ) + n
      return node
  
file_path: catboost/contrib/python/gast/gast/gast.py
imports: import sys
  import ast
  from ast import boolop, cmpop, excepthandler, expr, expr_context, operator
  from ast import slice, stmt, unaryop, mod, AST
  from ast import iter_child_nodes, walk
label_desc: Use image node_id 8 for calling a global function with example usage: increment_lineno(node, n) and returns: node