code: def match(self, targetfile):
      def match_pattern(pattern, trie, empty):
          return chain(
              chain.from_iterable(trie.iter_prefix_values(pattern)),
              empty,
          )
  
      f = str(targetfile)
      hits = set(match_pattern(f, self.prefix_trie, self.empty_prefix))
      return hits.intersection(
          match_pattern(f[::-1], self.suffix_trie, self.empty_suffix)
      )
  
label_desc: Use image node_id 2 for calling the OutputIndex obj's underlying member method code with example usage: obj.match(targetfile) and returns: hits, chain