def METHOD_NAME(self, executor_rank: int = 0, process_group: ProcessGroup = None):
    """
    This context manager is used to allow one process to execute while blocking all
    other processes in the same process group. This is often useful when downloading is required
    as we only want to download in one process to prevent file corruption.
    Example:
        >>> from colossalai.cluster import DistCoordinator
        >>> dist_coordinator = DistCoordinator()
        >>> with dist_coordinator.priority_execution():
        >>>     dataset = CIFAR10(root='./data', download=True)
    Args:
        executor_rank (int): the process rank to execute without blocking, all other processes will be blocked
        process_group (ProcessGroup, optional): process group to use for the executor rank check. Defaults to None, which refers to the default process group.
    """
    rank = dist.get_rank(group=process_group)
    should_block = rank != executor_rank
    if should_block:
        self.block_all(process_group)
    yield
    if not should_block:
        self.block_all(process_group)