Toward a general procedure for extracting templates from chaotic attractors bounded by high genus torus