code: def _bool_element(value: bool, ctx: SimpleNamespace) -> etree.Element:
      if value:
          return etree.Element("true")
      return etree.Element("false")
  
imports: import collections.abc
  import re
  from typing import Any, Callable, Dict, List, Mapping, MutableMapping, Optional, Sequence, Type, Union, IO
  import warnings
  from io import BytesIO
  from datetime import datetime
  from base64 import b64encode, b64decode
  from numbers import Integral
  from types import SimpleNamespace
  from functools import singledispatch
  from fontTools.misc import etree
  from fontTools.misc.textTools import tostr
label_desc: Use image node_id 17 for calling a global function with example usage: _bool_element(value, ctx) and returns: etree, etree