code: def test_compile(self):
      self.run_subtests(
          {
              "sharding_strategy": [
                  ShardingStrategy.FULL_SHARD,
                  ShardingStrategy.SHARD_GRAD_OP,
                  ShardingStrategy.NO_SHARD,
                  ShardingStrategy.HYBRID_SHARD,
                  ShardingStrategy._HYBRID_SHARD_ZERO2,
              ],
              "skip_fsdp_guards": [True, False],
              "act_checkpoint": [True, False],
          },
          self._test_compile,
      )
  
file_path: pytorch/test/distributed/_composable/fully_shard/test_fully_shard_compile.py
imports: import copy
  import sys
  import torch
  import torch.distributed
  import torch.nn
  from torch.distributed._composable import checkpoint, fully_shard
  from torch.distributed.fsdp import ShardingStrategy
  from torch.distributed.fsdp.wrap import ModuleWrapPolicy
  from torch.testing._internal.common_distributed import skip_if_lt_x_gpu
  from torch.testing._internal.common_fsdp import CUDAInitMode, FSDPInitMode, FSDPTest, TransformerWithSharedParams
  from torch.testing._internal.common_utils import run_tests, TEST_WITH_DEV_DBG_ASAN
label_desc: Use image node_id 2 for calling the TestCompile obj's underlying member method code with example usage: obj.test_compile() without return types