def METHOD_NAME(state_goal, state_curr, absolute: bool = True):
    p1 = state_goal["position"]
    p2 = state_curr["position"]
    if absolute:
        result = {k: abs(p1[k] - p2[k]) for k in p1.keys()}
    else:
        result = {k: (p1[k] - p2[k]) for k in p1.keys()}
    return result