code: def _action_allowed(action, parser):
      if not CompletionFinder._action_allowed(action, parser):
          return False
  
      append_classes = (
          argparse._AppendAction,
          argparse._AppendConstAction,
      )
      if action._orig_class in append_classes:
          return True
  
      if action not in parser._seen_non_default_actions:
          return True
  
      return False
  
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 1 for calling the ExclusiveCompletionFinder obj's underlying member method code with example usage: obj._action_allowed(action, parser) and returns: False, False, True, True