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 create_margin(
      self,
      window_render_info: WindowRenderInfo,
      width: int,
      height: int,
  ) -> StyleAndTextTuples:
      if width and self.filter():
          return self.margin.create_margin(
              window_render_info, width, height
          )
      else:
          return []
  
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 3 for calling the ConditionalMargin obj's underlying member method code with example usage: obj.create_margin(window_render_info, width, height) and returns: self, list