code: def safe_text_to_bool(value):
      # type: (Text) -> bool
      try:
          return bool(strtobool(value))
      except ValueError:
          return bool(value)
  
file_path: clearml/clearml/backend_config/converters.py
imports: import base64
  from distutils.util import strtobool
  from typing import Union, Optional, Any, TypeVar, Callable, Tuple
  import six
label_desc: Use image node_id 3 for calling a global function with example usage: safe_text_to_bool(value) and returns: bool, bool