def _get_account_policy_data_value(name, key):
    cmd = 'dscl . -readpl /Users/{0} accountPolicyData {1}'.format(name, key)
    try:
        ret = salt.utils.mac_utils.execute_return_result(cmd)
    except CommandExecutionError as exc:
        if 'eDSUnknownNodeName' in exc.strerror:
            raise CommandExecutionError('User not found: {0}'.format(name))
        raise CommandExecutionError('Unknown error: {0}'.format(exc.strerror))

    return ret
Computes initial states.
dataset/ETHPy150Open saltstack/salt/salt/modules/mac_shadow.py/_get_account_policy_data_value--crossover with--dataset/ETHPy150Open rizar/attention-lvcsr/libs/blocks/blocks/search.py/BeamSearch.compute_initial_states