code: def string_to_bool(s: str) -> bool:
      """Converts string values to boolean for flag arguments (e.g. --active=true)"""
      return util.strtobool(s)
  
imports: import functools
  import itertools
  from argparse import SUPPRESS, ArgumentDefaultsHelpFormatter, ArgumentParser, Namespace
  from typing import Any, Callable, List, NamedTuple, Optional, Tuple, Union, cast
  from termcolor import colored
  from determined.common import util
label_desc: Use image node_id 7 for calling a global function with example usage: string_to_bool(s) and returns: util