code: def test_nested_and():
      for a in (True, False):
          for b in (True, False):
              for c in (True, False):
                  c1 = Condition(lambda: a)
                  c2 = Condition(lambda: b)
                  c3 = Condition(lambda: c)
                  c4 = (c1 & c2) & c3
  
                  assert isinstance(c4, Filter)
                  assert c4() == (a and b and c)
  
file_path: catboost/contrib/python/prompt-toolkit/py3/tests/test_filter.py
imports: from __future__ import annotations
  import pytest
  from prompt_toolkit.filters import Always, Condition, Filter, Never, to_filter
  from prompt_toolkit.filters.base import _AndList, _OrList
label_desc: Use image node_id 6 for calling a global function with example usage: test_nested_and() without return types