code: def disable_extensions():
      def is_setting(name: str) -> bool:
          if not name.startswith("WITH_"):
              return False
          if name.startswith("WITH_PT") or name.startswith(
              "WITH_WINDOWS"
          ):
              return False
          return True
  
      settings = dir(torch_geometric.typing)
      settings = [key for key in settings if is_setting(key)]
      state = {
          key: getattr(torch_geometric.typing, key) for key in settings
      }
  
      for key in state.keys():
          setattr(torch_geometric.typing, key, False)
      yield
      for key, value in state.items():
          setattr(torch_geometric.typing, key, value)
  
file_path: pytorch_geometric/test/conftest.py
imports: import functools
  import logging
  import os.path
  from typing import Callable
  import pytest
  import torch
  import torch_geometric.typing
  from torch_geometric.data import Dataset
  from torch_geometric.io import fs
label_desc: Use image node_id 4 for calling a global function with example usage: disable_extensions() and returns: True, False, False