code: def BoolParam(default, is_valid=None, allow_override=True):
      # see comment at the beginning of this file.
  
      def booltype(s):
          if s in ["False", "false", "0", False]:
              return False
          elif s in ["True", "true", "1", True]:
              return True
  
      def is_valid_bool(s):
          if s in [
              "False",
              "false",
              "0",
              "True",
              "true",
              "1",
              False,
              True,
          ]:
              return True
          else:
              return False
  
      if is_valid is None:
          is_valid = is_valid_bool
  
      return TypedParam(
          default, booltype, is_valid, allow_override=allow_override
      )
  
imports: from __future__ import absolute_import, print_function, division
  import logging
  import os
  import shlex
  import sys
  import warnings
  from functools import wraps
  from six import StringIO, PY3, iteritems
  import theano
  from theano.compat import configparser
  from six import string_types
label_desc: Use image node_id 10 for calling a global function with example usage: BoolParam(default, is_valid, allow_override) and returns: TypedParam, False, True, False, True