code: def is_compiling() -> bool:
      r"""Returns :obj:`True` in case :pytorch:`PyTorch` is compiling via
      :meth:`torch.compile`.
      """
      if torch_geometric.typing.WITH_PT21:
          return torch._dynamo.is_compiling()
      return False
  
imports: import warnings
  from typing import Any, Callable, Optional, Union
  import torch
  import torch_geometric.typing
label_desc: Use image node_id 1 for calling a global function with example usage: is_compiling() and returns: False, torch