code: def test_tied_weights_warns(self, functional_call):
      module = MockModule()
      module.tied_bias = module.l1.bias
      module.register_buffer("tied_buffer", module.buffer)
  
imports: import contextlib
  import os
  import re
  import subprocess
  import sys
  import unittest
  import torch
  import torch.nn.utils.stateless
  from torch.testing._internal.common_cuda import TEST_MULTIGPU
  from torch.testing._internal.common_utils import run_tests, TestCase, parametrize, instantiate_parametrized_tests, subtest
label_desc: Use image node_id 15 for calling the TestStatelessFunctionalAPI obj's underlying member method code with example usage: obj.test_tied_weights_warns(functional_call) without return types