<jupyter_start><jupyter_text>echo_dataecho_data is a data plugin that echoes the data passed into it. It is useful in grouped_tasks debugging. Example<jupyter_code>from nornir import InitNornir
from nornir.core.filter import F
from nornir_utils.plugins.tasks.data import echo_data
from nornir_utils.plugins.functions import print_result

nr = InitNornir(
    inventory={
        "plugin": "SimpleInventory",
        "options": {"host_file": "data/hosts.yaml", "group_file": "data/groups.yaml"},
    }
)
nr = nr.filter(~F(name="dev5.no_group"))


def grouped_task(task):
    task.run(task=echo_data, name=task.host.name, role=task.host["role"])


r = nr.run(task=grouped_task)
print_result(r)<jupyter_output>[1m[36mgrouped_task********************************************************************[0m
[0m[1m[34m* dev1.group_1 ** changed : False **********************************************[0m
[0m[1m[32mvvvv grouped_task ** changed : False vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv INFO[0m
[0m[1m[32m---- dev1.group_1 ** changed : False ------------------------------------------- INFO[0m
[0m{'role': 'www'}[0m
[0m[1m[32m^^^^ END grouped_task ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^[0m
[0m[1m[34m* dev2.group_1 ** changed : False **********************************************[0m
[0m[1m[32mvvvv grouped_task ** changed : False vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv INFO[0m
[0m[1m[32m---- dev2.group_1 ** changed : False ------------------------------------------- INFO[0m
[0m{'role': 'db'}[0m
[0m[1m[32m^^^^ END grouped_task ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^[0m
[0m[1m[34m* dev3.group_2 ** changed : False ********[...]
{'fraction_non_alphanumeric': 0.352803738317757, 'fraction_numerical': 0.036799065420560745, 'mean_word_length': 5.139784946236559, 'pattern_counts': {'":': 4, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '208869', 'license': 'Apache-2.0', 'n_tokens_mistral': 646, 'n_tokens_neox': 578, 'n_words': 91, 'path': 'docs/html/tutorials/echo_data.ipynb', 'repo_name': 'bytinbit/nornir_utils', 'size': '1712'}