def epc_calc_hdr(reg_dict):
    """
    Returns True if high dynamic range is enabled, False otherwise

    Parameters
    ----------
    reg_dict : dict
        The dictionary that contains all the register information

    Returns
    ----------
    bool
        True if HDR enabled, false otherwise
    """
    hdr_enabled = (reg_dict["pixel_mode"][2] == 1) and (
        reg_dict["dual_int_mode"][2] == 1)
    return hdr_enabled