code: def test_deprecated_path():
      # Check if import works as before.
      # from fairscale.nn.misc.checkpoint_activations import checkpoint_wrapper
      from fairscale.nn import checkpoint_wrapper
  
      ffn = nn.Sequential(
          nn.Linear(32, 128),
          nn.Dropout(p=0.5),
          nn.Linear(128, 32),
      )
      ffn = checkpoint_wrapper(ffn, {})
  
      # Check if direct import works as before.
      ffn = nn.Sequential(
          nn.Linear(32, 128),
          nn.Dropout(p=0.5),
          nn.Linear(128, 32),
      )
      ffn = deprecated_checkpoint_wrapper(ffn, {})
  
imports: import pytest
  import torch
  import torch.nn
  from torch.utils.checkpoint import checkpoint
  from fairscale.fair_dev.testing.testing import skip_if_no_cuda
  from fairscale.internal import torch_version
  from fairscale.nn.checkpoint.checkpoint_activations import checkpoint_wrapper, disable_checkpointing
  from fairscale.nn.misc import FlattenParamsWrapper
  from fairscale.nn.misc import checkpoint_wrapper
label_desc: Use image node_id 6 for calling a global function with example usage: test_deprecated_path() without return types