code: def find_metas(cls_node):
      # find the suite node (Mmm, sweet nodes)
      for node in cls_node.children:
          if node.type == syms.suite:
              break
      else:
          raise ValueError("No class suite!")
  
      # look for simple_stmt[ expr_stmt[ Leaf('__metaclass__') ] ]
      for i, simple_node in list(enumerate(node.children)):
          if (
              simple_node.type == syms.simple_stmt
              and simple_node.children
          ):
              expr_node = simple_node.children[0]
              if (
                  expr_node.type == syms.expr_stmt
                  and expr_node.children
              ):
                  # Check if the expr_node is a simple assignment.
                  left_node = expr_node.children[0]
                  if (
                      isinstance(left_node, Leaf)
                      and left_node.value == "__metaclass__"
                  ):
                      # We found an assignment to __metaclass__.
                      fixup_simple_stmt(node, i, simple_node)
                      remove_trailing_newline(simple_node)
                      yield (node, i, simple_node)
  
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 5 for calling a global function with example usage: find_metas(cls_node) without return types