code: def map_bool(data: Any) -> bool:
      if not isinstance(data, bool):
          # Be lenient.
          if isinstance(data, int):
              if data == 0:
                  return False
              if data == 1:
                  return True
          if isinstance(data, str):
              if data.lower() in TRUE_STRINGS:
                  return True
              if data.lower() in FALSE_STRINGS:
                  return False
          raise DeepTypeError("Not a bool")
      return data
  
imports: from abc import ABC, abstractmethod
  from enum import Enum
  from inspect import isclass
  from itertools import chain
  from typing import Any, ClassVar, Dict, List, Optional, Sized, Type, TypeVar, Union
  import attr
label_desc: Use image node_id 1 for calling the Loader obj's underlying member method code with example usage: obj.map_bool(data) and returns: data, False, True, True, False