def METHOD_NAME(ots_bitfield, ots_key_index) -> bool:
    offset = ots_key_index >> 3
    relative = ots_key_index % 8
    bitfield = bytearray(ots_bitfield[offset])
    bit_value = (bitfield[0] >> relative) & 1
    if bit_value:
        return True
    return False