class_docstr: A ``BooleanFilter`` filters data by returning the subset of data corresponding to indices
  where the values of the booleans array is True.
class_docstr_tok: ["A","``","BooleanFilter","``","filters","data","by","returning","the","subset","of","data","corresponding","to","indices","where","the","values","of","the","booleans","array","is","True","."]
code: def __init__(self, *args, **kwargs) -> None:
      if len(args) == 1 and "booleans" not in kwargs:
          kwargs["booleans"] = args[0]
  
      super().__init__(**kwargs)
  
imports: from __future__ import annotations
  import logging
  from ..core.has_props import abstract
  from ..core.properties import AnyRef, Bool, Instance, Int, NonEmpty, Nullable, Required, RestrictedDict, Seq, String
  from ..model import Model
label_desc: Use image node_id 1 to create a new BooleanFilter object from inherited base classes: Filter with example: obj = BooleanFilter()