code: def any_to_bool(value):
      # type: (Optional[Union[int, float, Text]]) -> bool
      if isinstance(value, six.text_type):
          return text_to_bool(value)
      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 4 for calling a global function with example usage: any_to_bool(value) and returns: bool, text_to_bool