def get_bits(bitmask_to_get: int, bitwise_data: int):
    """
    This function will return the integer value represented by the bits that are high in
     `bitmask_to_get` from the bits that represent the integer value, `bitwise_data`.
    :param bitmask_to_get: A integer representing the bits you want to get from `bitwise_data`
    :param bitwise_data: A integer representing the data which to extract the bits out of
    :return: A integer representing bits extracted from `bitwise_data`
    """
    return bitmask_to_get & bitwise_data