code: def clear(node, class_):
      if hasattr(node, "metadata"):
          node.metadata.data = [
              s for s in node.metadata if not isinstance(s, class_)
          ]
          if not node.metadata.data:
              del node.metadata
              assert node._fields[-1] == "metadata"
              node._fields = node._fields[:-1]
  
file_path: catboost/contrib/python/pythran/pythran/metadata.py
imports: from gast import AST
label_desc: Use image node_id 3 for calling a global function with example usage: clear(node, class_) without return types