code: def get_bool(_bytearray, byte_index, bool_index):
      
      index_value = 1 << bool_index
      byte_value = _bytearray[byte_index]
      current_value = byte_value & index_value
      return current_value == index_value
docs: Get the boolean value from location in bytearray