code: def get_node_parent_children(fx_node):
      """Populate lists of all direct parents and children of a node"""
      # get node parent list, and convert node name to module name
      node_parent_name_converted = []
      if len(fx_node.all_input_nodes) > 0:
          node_parent = fx_node.all_input_nodes
          for item in node_parent:
              converted_item = convert_fx_node_name(item.name)
              node_parent_name_converted.append(converted_item)
      else:
          node_parent = []
  
      # get node children list, and convert node name to module name
      node_children_name_converted = []
      if len(list(fx_node.users.keys())) > 0:
          node_children = list(fx_node.users.keys())
          for item in node_children:
              converted_item = convert_fx_node_name(item.name)
              node_children_name_converted.append(converted_item)
      else:
          node_children = []
  
      return node_parent_name_converted, node_children_name_converted
  
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 2 for calling a global function with example usage: get_node_parent_children(fx_node) and returns: node_parent_name_converted,  node_children_name_converted