<｜begin▁of▁sentence｜>### Instruction:
As a seasoned dog trainer, imagine you're coaching a playful Labrador named Max to learn a new trick: fetching a specific toy from a pile. Now, let's say you've hidden Max's favorite squeaky ball somewhere in a large room filled with various toys. As Max excitedly sniffs around, your task is to guide him through this search process while keeping track of his progress. How would you incorporate a progress tracker into Max's training session, allowing you to monitor the percentage of the area covered as he explores the room?
### Response:
import igraph as ig

# Define a progress handler function that prints the progress
def progress_handler(message, progress):
    print(f'{message}: {progress}% complete')

# Set the progress handler for igraph
ig.set_progress_handler(progress_handler)

# Perform a long operation in igraph, for example community detection
graph = ig.Graph.Famous('Zachary')
communities = graph.community_multilevel(return_levels=True)
<|EOT|>
