docstr: Collect the real parents of all nodes in the graph
code: def find_real_parents(cls, fx_graph):
      """Collect the real parents of all nodes in the graph"""
  
      if cls.__verbosity > 0:
          print(
              "\n[find_real_parents] Find the real parents for each node according to the whole network graph built with Torch.FX"
          )
  
      for node_name in fx_graph.keys():
          node_real_parents_name = []
          node_real_parents_module_type = []
  
          real_parents = cls.find_node_real_parents(
              fx_graph, node_name, set()
          )
  
          if cls.__verbosity > 1:
              print(
                  f"[find_real_parents] {node_name} has {len(real_parents)} real parents: {real_parents}"
              )
  
          fx_graph[node_name]["real_parents"] = sorted(real_parents)
  
      if cls.__save_permutation_graph:
          cls.save_graph_to_json(
              fx_graph,
              save_dumped_graph_path_with_name=os.path.join(
                  cls.__permutation_output_dir,
                  "./model_graph_find_real_parent.json",
              ),
          )  # save the intermediate graph as JSON file for debugging
      return fx_graph
  
imports: import os
  import torch
  import json
  import string
  import time
  import numpy
  import sys
  import builtins
  import io
label_desc: Use image node_id 38 for calling the Permutation obj's underlying member method code with example usage: obj.find_real_parents(cls, fx_graph) and returns: fx_graph