code: def _only_text_image_nodes(self, list_nodes):
      list_nodes = [
          node
          for node in list_nodes
          if (node.tag == "-text")
          or (node.tag == "figure")
          or ((node.tag == "img") and (node.media_info))
      ]
      return list_nodes
  
file_path: hf-obelics/obelics/processors/pre_extraction_simplificator.py
imports: import re
  from obelics.utils import MEDIA_CONTAIN_INTERESTING_ATTRIBUTES_SET, TAG_TO_SEP, simplify_media_node
label_desc: Use image node_id 3 for calling the PreExtractionSimplificator obj's underlying member method code with example usage: obj._only_text_image_nodes(list_nodes) and returns: list_nodes