code: def _parameterized_custom_name_func(func, param_num, param):
      # customize the test name generator function as we want both params to appear in the sub-test
      # name, as by default it shows only the first param
      param_based_name = parameterized.to_safe_name(
          "_".join(str(x) for x in param.args)
      )
      return f"{func.__name__}_{param_based_name}"
  
imports: import itertools
  import os
  import unittest
  from functools import partial
  from parameterized import parameterized
  import tests.trainer.test_trainer
  from tests.trainer.test_trainer import TrainerIntegrationCommon
  from transformers import is_torch_available
  from transformers.testing_utils import TestCasePlus, backend_device_count, execute_subprocess_async, mockenv_context, require_accelerate, require_fsdp, require_torch_accelerator, require_torch_multi_accelerator, slow, torch_device
  from transformers.trainer_callback import TrainerState
  from transformers.trainer_utils import FSDPOption, set_seed
  from transformers.utils import is_accelerate_available, is_torch_bf16_available_on_device
label_desc: Use image node_id 3 for calling a global function with example usage: _parameterized_custom_name_func(func, param_num, param) and returns: func, str, param_based_name