code: def is_phase(n: Node, phase: Phase) -> bool:
      assert "phase" in n.meta, f"Node meta of {n} has no key `phase`!"
      return n.meta["phase"] == phase
  
file_path: colossalai/colossalai/fx/profiler/dataflow.py
imports: from dataclasses import dataclass, field
  from enum import Enum
  from typing import Dict, List
  from torch.fx import Graph, Node
  from .._compatibility import compatibility
  from .memory_utils import activation_size, is_inplace
label_desc: Use image node_id 1 for calling a global function with example usage: is_phase(n, phase) and returns: unknown