code: def remove_trailing_newline(node):
      if node.children and node.children[-1].type == token.NEWLINE:
          node.children[-1].remove()
  
file_path: catboost/contrib/tools/python/src/Lib/lib2to3/fixes/fix_metaclass.py
imports: from ..None import fixer_base
  from ..pygram import token
  from ..fixer_util import Name, syms, Node, Leaf
label_desc: Use image node_id 4 for calling a global function with example usage: remove_trailing_newline(node) without return types