code: def data_node_has_parent(g, id):
      for edge in g.edges:
          if edge.dst == id:
              return True
      return False
  
file_path: tensorwatch/tensorwatch/model_graph/hiddenlayer/pytorch_draw_model.py
imports: import pydot
  from .summary_graph import SummaryGraph
  from .None import distiller
  import torch
  import collections.abc
  import os
label_desc: Use image node_id 6 for calling a global function with example usage: data_node_has_parent(g, id) and returns: False, True