remove_loops# remove_loops(k: PlanarDiagram) → PlanarDiagram# Remove loops and return how many loops were removed. Inplace. Args:k: Returns: