class_docstr: Wrapper around other :class:`.Margin` classes to show/hide them.
class_docstr_tok: ["Wrapper","around","other",":","class",":","`",".Margin","`","classes","to","show\/hide","them","."]
code: def __init__(self, margin: Margin, filter: FilterOrBool) -> None:
      self.margin = margin
      self.filter = to_filter(filter)
  
imports: from __future__ import annotations
  from abc import ABCMeta, abstractmethod
  from typing import TYPE_CHECKING, Callable
  from prompt_toolkit.filters import FilterOrBool, to_filter
  from prompt_toolkit.formatted_text import StyleAndTextTuples, fragment_list_to_text, to_formatted_text
  from prompt_toolkit.utils import get_cwidth
  from .controls import UIContent
label_desc: Use image node_id 1 to create a new ConditionalMargin object from inherited base classes: Margin with example: obj = ConditionalMargin(margin, filter)