code: def test_layer_parameter_name(self):
      output_dims = 2
      with scope.NameScope("global_scope"):
          fc1_output = self.model.FC(
              self.model.input_feature_schema.float_features,
              output_dims,
          )
          self.assertEqual(self.model.layers[-1].w, "global_scope/fc/w")
          self.assertEqual(fc1_output(), "global_scope/fc/output")
  
          with scope.NameScope("nested_scope"):
              fc2_output = self.model.FC(fc1_output, output_dims)
              self.assertEqual(
                  self.model.layers[-1].w,
                  "global_scope/nested_scope/fc/w",
              )
              self.assertEqual(
                  fc2_output(), "global_scope/nested_scope/fc/output"
              )
  
              fc3_output = self.model.FC(fc1_output, output_dims)
              self.assertEqual(
                  self.model.layers[-1].w,
                  "global_scope/nested_scope/fc_auto_0/w",
              )
              self.assertEqual(
                  fc3_output(),
                  "global_scope/nested_scope/fc_auto_0/output",
              )
  
file_path: pytorch/caffe2/python/layer_parameter_sharing_test.py
imports: from caffe2.python import core, scope
  from caffe2.python.modeling.parameter_sharing import ParameterSharing
  from caffe2.python.optimizer import AdagradOptimizer, AdamOptimizer
  from caffe2.python.layer_test_util import LayersTestCase
label_desc: Use image node_id 1 for calling the ParameterSharingTest obj's underlying member method code with example usage: obj.test_layer_parameter_name() without return types