code: def test_condition_filter_args():
      c = Condition(lambda a, b, c: True)
      assert c.test_args("a", "b", "c")
      assert not c.test_args()
      assert not c.test_args("a")
      assert not c.test_args("a", "b")
      assert not c.test_args("a", "b", "c", "d")
  
      c2 = Condition(lambda a, b=1: True)
      assert c2.test_args("a")
      assert c2.test_args("a", "b")
      assert not c2.test_args("a", "b", "c")
      assert not c2.test_args()
  
      c3 = Condition(lambda *a: True)
      assert c3.test_args()
      assert c3.test_args("a")
      assert c3.test_args("a", "b")
  
file_path: catboost/contrib/python/prompt-toolkit/py2/tests/test_filter.py
imports: from __future__ import unicode_literals
  from prompt_toolkit.filters import Condition, Never, Always, Filter
  from prompt_toolkit.filters.types import CLIFilter, SimpleFilter
  from prompt_toolkit.filters.utils import to_cli_filter, to_simple_filter
  from prompt_toolkit.filters.cli import HasArg, HasFocus, HasSelection
  import pytest
label_desc: Use image node_id 1 for calling a global function with example usage: test_condition_filter_args() without return types