code: def are_nodes_independent(nodes: List[Node]):
      """
      Check if all of the given nodes are pairwise-data independent.
  
      Arguments:
          nodes: The nodes to check for data dependencies.
  
      Returns:
          True if any pair in nodes has a data dependency.
      """
      # For each pair in nodes:
      for i, j in itertools.combinations(nodes, 2):
          if may_depend_on(i, j) or may_depend_on(j, i):
              return False
  
      return True
  
file_path: pytorch/torch/fx/experimental/merge_matmul.py
imports: import torch
  from torch.fx.node import Node
  from torch.fx._symbolic_trace import symbolic_trace
  from torch.fx.passes.tools_common import legalize_graph
  import itertools
  import operator
  from typing import Dict, List, Tuple
label_desc: Use image node_id 3 for calling a global function with example usage: are_nodes_independent(nodes) and returns: True, False