class_docstr: Inherit from this class if you wish to override any of the stages below. Otherwise, use
  ``argcomplete.autocomplete()`` directly (it's a convenience instance of this class). It has the same signature as
  :meth:`CompletionFinder.__call__()`.
docstr: De-duplicates completions and excludes those specified by ``exclude``.
  Returns the filtered completions as a list.
  
  This method is exposed for overriding in subclasses; there is no need to use it directly.
docstr_tok: ["De-duplicates","completions","and","excludes","those","specified","by","``","exclude","``",".","Returns","the","filtered","completions","as","a","list",".","This","method","is","exposed","for","overriding","in","subclasses",";","there","is","no","need","to","use","it","directly","."]
code: def filter_completions(self, completions: List[str]) -> List[str]:
      """
      De-duplicates completions and excludes those specified by ``exclude``.
      Returns the filtered completions as a list.
  
      This method is exposed for overriding in subclasses; there is no need to use it directly.
      """
      filtered_completions = []
      for completion in completions:
          if self.exclude is not None:
              if completion in self.exclude:
                  continue
          if completion not in filtered_completions:
              filtered_completions.append(completion)
      return filtered_completions
  
imports: import argparse
  import os
  import sys
  from collections.abc import Mapping
  from typing import Callable, Dict, List, Optional, Sequence, Union
  from .None import io
  from .completers import ChoicesCompleter, FilesCompleter, SuppressCompleter
  from .io import debug, mute_stderr
  from .lexers import split_line
  from .packages._argparse import IntrospectiveArgumentParser, action_is_greedy, action_is_open, action_is_satisfied
label_desc: Use image node_id 12 for calling the CompletionFinder obj's underlying member method code with example usage: obj.filter_completions(completions) and returns: filtered_completions