def california_ja8_2019(frequency:float, percent_flicker:float) -> bool:
    """Tests for compliance with California JA8 2019

    California Joint Appendix 8 defines flicker thresholds in section
    JA 8.4.6 and table JA-8:
    https://efiling.energy.ca.gov/GetDocument.aspx?tn=223245-9&DocumentContentId=27701

    Parameters
    ----------
    frequency : float
        The flicker frequency in Hertz
    percent_flicker : float
        The flicker percentage

    Returns
    -------
    bool
        If True, the light source passes
        If False, the light source does not pass
    """

    if frequency > 200:
        # Pass for frequencies above 200 Hz
        return True
    elif percent_flicker < 30:
        # Pass for frequencies below 200 Hz with percent flicker below 30%
        return True
    else:
        # Fails
        return False