code: def test_condition():
      c = Condition(lambda a: a % 2 == 0)
      assert c(4)
      assert c(6)
      assert not c(5)
      assert not c(3)
  
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 4 for calling a global function with example usage: test_condition() without return types