code: def test_no_warn_if_compiling(_):
      """No warning should be raised to avoid graph breaks when compiling."""
      with warnings.catch_warnings():
          warnings.simplefilter("error")
          warn("test")
  
imports: import warnings
  from unittest.mock import patch
  import pytest
  from torch_geometric.warnings import warn
label_desc: Use image node_id 2 for calling a global function with example usage: test_no_warn_if_compiling(_) without return types