code: def test_and():
      for a in (True, False):
          for b in (True, False):
              c1 = Condition(lambda: a)
              c2 = Condition(lambda: b)
              c3 = c1 & c2
  
              assert isinstance(c3, Filter)
              assert c3() == (a and 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 9 for calling a global function with example usage: test_and() without return types