def calculate_slice(pinned: dict, results: dict):
    """Extracts all data points from ``results`` with pinned values specified by ``pinned``."""
    slice_d = {}

    for k, v in results.items():
        v_c = v.copy()
        contained = True

        for k_p, v_p in pinned.items():
            if v_c[k_p] != v_p:
                contained = False
            else:
                del v_c[k_p]

        if contained:
            slice_d.update({k: v_c})

    return slice_d