code: def is_leaf(graph: Graph, node: Node):
      return node in get_leaf(graph)
  
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 3 for calling a global function with example usage: is_leaf(graph, node) and returns: unknown