def METHOD_NAME(model: torch.nn.Module) -> str:
    r"""Determines the message passing flow of the :obj:`model`."""
    for module in model.modules():
        if isinstance(module, MessagePassing):
            return module.flow
    return 'source_to_target'