code: def _adapt_children_trials(node, children_trials_nodes):
      """Adapt trials from the children recursively
  
      .. note::
  
          To call with node.map(fct, node.children) to connect with children
  
      """
      ids = {
          trial.compute_trial_hash(trial, ignore_lie=True)
          for trial in node.item["trials"]
      }
  
      for child in children_trials_nodes:
          adapter = child.item["experiment"].refers["adapter"]
          for subchild in child:  # Includes child itself
              subchild.item["trials"] = adapter.backward(
                  subchild.item["trials"]
              )
  
              # if trial is in current node, filter out
              subchild.item["trials"] = [
                  trial
                  for trial in subchild.item["trials"]
                  if trial.compute_trial_hash(trial, ignore_lie=True)
                  not in ids
              ]
  
      return node.item, children_trials_nodes
  
file_path: orion/src/orion/core/evc/experiment.py
imports: import functools
  import logging
  from orion.core.utils.tree import TreeNode
label_desc: Use image node_id 2 for calling a global function with example usage: _adapt_children_trials(node, children_trials_nodes) and returns: node,  children_trials_nodes