code: def test_world_size_4to1(
      self,
      inputs,
      class_tmpdir,
      baseline_ws4,
      mp_size,
      pp_size,
      mp_resize,
      pp_resize,
  ):
      self._test(
          inputs, class_tmpdir, mp_size, pp_size, mp_resize, pp_resize
      )
  
imports: import os
  import torch
  import deepspeed
  import pytest
  import random
  import numpy
  import deepspeed.comm
  from unit.common import DistributedTest, DistributedFixture
  from unit.megatron_model import get_megatron_version
  from unit.megatron_model import MockGPT2ModelPipe
  from deepspeed.utils import RepeatingLoader
label_desc: Use image node_id 3 for calling the TestConfigurableResizePP obj's underlying member method code with example usage: obj.test_world_size_4to1(inputs, class_tmpdir, baseline_ws4, mp_size, pp_size, mp_resize, pp_resize) without return types