code: from llama_index.core.postprocessor import KeywordNodePostprocessor
  from llama_index.core.schema import TextNode, NodeWithScore
  
  nodes = [
      TextNode(
          text="Entry no: 1, <SECRET> - Attack at Dawn"
      ),
      TextNode(
          text="Entry no: 2, <RESTRICTED> - Go to point Bravo"
      ),
      TextNode(
          text="Entry no: 3, <PUBLIC> - Roses are Red"
      ),
  ]
  
  node_with_score_list = [
      NodeWithScore(node=node) for node in nodes
  ]
  pp = KeywordNodePostprocessor(
      exclude_keywords=["SECRET", "RESTRICTED"]
  )
  remaining_nodes = pp.postprocess_nodes(
      node_with_score_list
  )
  print('Remaining nodes:')
  for node_with_score in remaining_nodes:
      node = node_with_score.node
      print(f"Text: {node.text}")
  
apis: llama_index.core.schema.TextNode llama_index.core.postprocessor.KeywordNodePostprocessor llama_index.core.schema.NodeWithScore
extract_api: [((452, 519), 'llama_index.core.postprocessor.KeywordNodePostprocessor', 'KeywordNodePostprocessor', ([], {'exclude_keywords': "['SECRET', 'RESTRICTED']"}), "(exclude_keywords=['SECRET', 'RESTRICTED'])\n", (476, 519), False, 'from llama_index.core.postprocessor import KeywordNodePostprocessor\n'), ((143, 198), 'llama_index.core.schema.TextNode', 'TextNode', ([], {'text': '"""Entry no: 1, <SECRET> - Attack at Dawn"""'}), "(text='Entry no: 1, <SECRET> - Attack at Dawn')\n", (151, 198), False, 'from llama_index.core.schema import TextNode, NodeWithScore\n'), ((218, 280), 'llama_index.core.schema.TextNode', 'TextNode', ([], {'text': '"""Entry no: 2, <RESTRICTED> - Go to point Bravo"""'}), "(text='Entry no: 2, <RESTRICTED> - Go to point Bravo')\n", (226, 280), False, 'from llama_index.core.schema import TextNode, NodeWithScore\n'), ((300, 354), 'llama_index.core.schema.TextNode', 'TextNode', ([], {'text': '"""Entry no: 3, <PUBLIC> - Roses are Red"""'}), "(text='Entry no: 3, <PUBLIC> - Roses are Red')\n", (308, 354), False, 'from llama_index.core.schema import TextNode, NodeWithScore\n'), ((402, 426), 'llama_index.core.schema.NodeWithScore', 'NodeWithScore', ([], {'node': 'node'}), '(node=node)\n', (415, 426), False, 'from llama_index.core.schema import TextNode, NodeWithScore\n')]