code: def get_all_consumers(graph: Graph, node: Node):
      """
      Given a graph and a node of this graph, return all consumers of the node.
  
      Returns:
          List of ``Nodes`` that node appear in these nodes ``args`` and ``kwargs``.
      """
      consumer_list = []
      for n in graph.nodes:
          if node in n.all_input_nodes:
              consumer_list.append(n)
      return consumer_list
  
file_path: colossalai/colossalai/fx/passes/utils.py
imports: from typing import Dict
  import torch
  from torch.fx.graph import Graph
  from torch.fx.node import Node, map_arg
label_desc: Use image node_id 6 for calling a global function with example usage: get_all_consumers(graph, node) and returns: consumer_list