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 = (
          "use_safetensors"
          if param["use_safetensors"] is True
          else "use_pytorch"
      )
      return f"{func.__name__}_{param_based_name}"
  
imports: import inspect
  import logging
  import os
  import random
  import shutil
  import tempfile
  import unittest
  import uuid
  from contextlib import contextmanager
  import pytest
  import torch
  from parameterized import parameterized_class
  from torch import nn
  from torch.utils.data import DataLoader, TensorDataset
  from accelerate import Accelerator
  from accelerate.test_utils import device_count, execute_subprocess_async, require_non_cpu
  from accelerate.utils import ProjectConfiguration, set_seed
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