code: def test_find_tied_parameters(self):
      model = sequential_model(4)
      self.assertListEqual(find_tied_parameters(model), [])
  
      model.linear2.weight = model.linear1.weight
      self.assertListEqual(
          find_tied_parameters(model),
          [["linear1.weight", "linear2.weight"]],
      )
  
      model.linear4.weight = model.linear1.weight
      self.assertListEqual(
          find_tied_parameters(model),
          [["linear1.weight", "linear2.weight", "linear4.weight"]],
      )
  
      model = sequential_model(5)
      model.linear1.weight = model.linear4.weight
      model.linear2.weight = model.linear3.weight
      model.linear5.weight = model.linear2.weight
      tied_params = sorted(
          find_tied_parameters(model), key=lambda x: len(x)
      )
      self.assertListEqual(
          tied_params,
          [
              ["linear1.weight", "linear4.weight"],
              ["linear2.weight", "linear3.weight", "linear5.weight"],
          ],
      )
  
      model = nn.Sequential(
          OrderedDict(
              [
                  ("block1", sequential_model(4)),
                  ("block2", sequential_model(4)),
              ]
          )
      )
      model.block1.linear1.weight = model.block2.linear1.weight
      self.assertListEqual(
          find_tied_parameters(model),
          [["block1.linear1.weight", "block2.linear1.weight"]],
      )
  
imports: import json
  import os
  import tempfile
  import unittest
  from collections import OrderedDict
  import torch
  import torch.nn
  from safetensors.torch import save_file
  from accelerate import init_empty_weights
  from accelerate.test_utils import require_cuda, require_huggingface_suite, require_multi_gpu
  from accelerate.utils.modeling import check_device_map, clean_device_map, compute_module_sizes, convert_file_size_to_int, find_tied_parameters, get_balanced_memory, infer_auto_device_map, load_checkpoint_in_model, load_state_dict, named_module_tensors, retie_parameters, set_module_tensor_to_device
label_desc: Use image node_id 9 for calling the ModelingUtilsTester obj's underlying member method code with example usage: obj.test_find_tied_parameters() without return types