def _get_dpv(statvar: dict, config: dict) -> list:
    """A function that goes through the statvar dict and the config and returns
    a list of properties to ignore when generating the dcid.

    Args:
        statvar: A dictionary of prop:values of the statvar
        config: A dict which expects the keys to be the column name and
          value to be another dict. This dict maps column values to key-value
          pairs of a statvar. See scripts/fbi/hate_crime/config.json for an
          example. In this function, the '_DPV_' key is used to identify 
          dependent properties.

    Returns:
        A list of properties to ignore when generating the dcid.
    """
    ignore_props = []
    for spec in config['_DPV_']:
        if spec['cprop'] in statvar:
            dpv_prop = spec['dpv']['prop']
            dpv_val = spec['dpv']['val']
            if dpv_val == statvar.get(dpv_prop, None):
                ignore_props.append(dpv_prop)
    return ignore_props