code: def skip_for_legacy_pytorch():
      import torch
  
      if Version(torch.__version__) < Version("1.11.0"):
          pytest.skip("PyTorch version is too old, skip this test.")
  
imports: import pytest
  from packaging.version import Version
  from nni.mutable import frozen_context
label_desc: Use image node_id 2 for calling a global function with example usage: skip_for_legacy_pytorch() without return types