()
Call the invalidate_caches() method on all meta path finders stored in
    sys.meta_path (where implemented).
Call the invalidate_caches() method on all meta path finders stored in
    sys.meta_path (where implemented).
Call the invalidate_caches () method on all meta path finders stored in sys . meta_path ( where implemented ) .
def invalidate_caches():
    """Call the invalidate_caches() method on all meta path finders stored in
    sys.meta_path (where implemented)."""
    for finder in sys.meta_path:
        if hasattr(finder, 'invalidate_caches'):
            finder.invalidate_caches()
def invalidate_caches ( ) : for finder in sys . meta_path : if hasattr ( finder , 'invalidate_caches' ) : finder . invalidate_caches ( )