def lending_policy(config, group, score):
    """Determine whether or not a bank gives a loan."""
    return (score >= config.threshold_g0) ** (1 - group) * (score >= config
        .threshold_g1) ** group
