code: def parse_ini_boolean(value: Union[bool, str]) -> bool:
      if isinstance(value, bool):
          return value
      if value.lower() == "true":
          return True
      if value.lower() == "false":
          return False
      raise ValueError("unknown string for bool: %r" % value)
  
file_path: wandb/tests/pytest_tests/unit_tests_old/utils/utils.py
imports: import io
  import os
  import shutil
  import socket
  from typing import Union
label_desc: Use image node_id 2 for calling a global function with example usage: parse_ini_boolean(value) and returns: value, True, False