code: def _check_gm_validity(gm: torch.fx.GraphModule):
      for node in gm.graph.nodes:
          assert len(
              node.meta["info"].global_ctx
          ), f"In {gm.__class__.__name__}, {node} has empty global context."
  
file_path: ColossalAI/tests/test_analyzer/test_fx/test_symbolic_profile.py
imports: import pytest
  import torch
  from packaging import version
  from colossalai.testing.utils import clear_cache_before_run, parameterize
  from tests.test_analyzer.test_fx.zoo import tm_models, tmm_models
label_desc: Use image node_id 1 for calling a global function with example usage: _check_gm_validity(gm) without return types