code: def _parse_string_as_bool(s):
      """Parses a string as a boolean argument."""
      lower = s.lower()
      if lower == "true":
          return True
      elif lower == "false":
          return False
      else:
          raise ValueError(
              f"Expected either 'true' or 'false'; got {s}"
          )
  
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 14 for calling a global function with example usage: _parse_string_as_bool(s) and returns: True, False