def _trace_D(gj, p_i, Dxtrav):
    for h in Dxtrav:
        if h[gj] == p_i:
            return h
    return None
Return the representative h satisfying h[gj] == p_i
dataset/ETHPy150Open sympy/sympy/sympy/combinatorics/tensor_can.py/_trace_D