code: def _test_get_optimizer_param_groups_fsdp_single_group_worker(
      gpu_id: int,
  ):
      finetune_config = TestFineTuning._create_finetuning_config(
          checkpoint_path="",
          construct_single_param_group_only=True,
          regularize_bias=False,
          with_fsdp=True,
          fsdp_flatten_parameters=True,
      )
      expected_param_groups = (
          TestFineTuning._expected_finetuning_param_groups(
              construct_single_param_group_only=True, sharding_factor=2
          )
      )
      param_groups = TestFineTuning._compute_param_groups(
          finetune_config
      )
      TestFineTuning._check_valid_param_groups(
          expected_param_groups, param_groups
      )
  
imports: import os
  import unittest
  from classy_vision.optim import build_optimizer_schedulers
  from vissl.config import AttrDict
  from vissl.models import build_model
  from vissl.optimizers import get_optimizer_param_groups
  from vissl.utils.checkpoint import CheckpointFormatConverter
  from vissl.utils.hydra_config import compose_hydra_configuration, convert_to_attrdict
  from vissl.utils.test_utils import gpu_test, in_temporary_directory, run_integration_test, spawn_distributed_test
label_desc: Use image node_id 8 for calling the TestFineTuning obj's underlying member method code with example usage: obj._test_get_optimizer_param_groups_fsdp_single_group_worker(gpu_id) without return types