code: def add_boolean_argument(parser, name, default=False, help_str=None):
      """Creates a boolean flag."""
      group = parser.add_mutually_exclusive_group()
      group.add_argument(
          "--" + name,
          nargs="?",
          default=default,
          const=True,
          type=_parse_string_as_bool,
          help=help_str,
      )
      group.add_argument("--no" + name, dest=name, action="store_false")
  
imports: import argparse
  import collections
  import hashlib
  import os
  import platform
  import re
  import shutil
  import stat
  import subprocess
  import sys
  import textwrap
  import urllib.request
  import logging
label_desc: Use image node_id 15 for calling a global function with example usage: add_boolean_argument(parser, name, default, help_str) without return types