code: def test_mod_dir(bias, bias_addition_split, shape):
      model = AModel(bias=bias)
      x = torch.rand(shape)
      gm = symbolic_trace(
          model,
          meta_args={"x": x},
          bias_addition_split=bias_addition_split,
      )
      for node in gm.graph.nodes:
          assert len(
              node.meta["info"].mod_dir
          ), f"{node} should have non-trivial ``mod_dir``."
          print(node, node.meta["info"].mod_dir)
  
file_path: ColossalAI/tests/test_analyzer/test_fx/test_mod_dir.py
imports: import pytest
  import torch
  from colossalai.testing import clear_cache_before_run, parameterize
label_desc: Use image node_id 1 for calling a global function with example usage: test_mod_dir(bias, bias_addition_split, shape) without return types