code: def __init__(self, intermediate_size, hidden_size):
      super().__init__()
      embed_dim = hidden_size
      self.c_fc = Conv1D(intermediate_size, embed_dim)
      self.c_proj = Conv1D(embed_dim, intermediate_size)
      self.act = torch.nn.ReLU()
  
file_path: ColossalAI/tests/test_auto_parallel/test_tensor_shard/test_checkpoint.py
imports: from typing import Optional, Tuple
  import pytest
  import torch
  import torch.nn
  from torch.utils.checkpoint import checkpoint
  from transformers.pytorch_utils import Conv1D
  from colossalai.device.device_mesh import DeviceMesh
  from colossalai.initialize import launch
  from colossalai.logging import disable_existing_loggers
  from colossalai.testing import rerun_if_address_is_in_use, run_on_environment_flag, spawn
label_desc: Use image node_id 1 to create a new GPT2MLPWithCkpt object from inherited base classes: nn with example: obj = GPT2MLPWithCkpt(intermediate_size, hidden_size)