code: def test_parameter_sharing_subscopes(self):
      # Sharing only one of the subscopes
      with ParameterSharing({"global_scope/b": "global_scope/a"}):
          with scope.NameScope("global_scope"):
              param_6 = parameter_sharing_context.get_parameter_name(
                  "w"
              )
              self.assertEqual(param_6, "global_scope/w")
              with scope.NameScope("a"):
                  param_7 = (
                      parameter_sharing_context.get_parameter_name("w")
                  )
                  self.assertEqual(param_7, "global_scope/a/w")
              with scope.NameScope("b"):
                  param_8 = (
                      parameter_sharing_context.get_parameter_name("w")
                  )
                  self.assertEqual(param_8, "global_scope/a/w")
              with scope.NameScope("c"):
                  param_9 = (
                      parameter_sharing_context.get_parameter_name("w")
                  )
                  self.assertEqual(param_9, "global_scope/c/w")
  
file_path: pytorch/caffe2/python/modeling/parameter_sharing_test.py
imports: from caffe2.python import brew, model_helper, scope
  from caffe2.python.modeling.parameter_sharing import ParameterSharing, parameter_sharing_context
  from caffe2.python.modeling.initializers import Initializer
  import unittest
label_desc: Use image node_id 3 for calling the ParameterSharingTest obj's underlying member method code with example usage: obj.test_parameter_sharing_subscopes() without return types