code: def testPartitionedVariables(self):
      def make_graph_with_partitioned_variables(use_resource):
          variable_scope.get_variable(
              name="weights",
              partitioner=partitioned_variables.fixed_size_partitioner(
                  3, axis=0
              ),
              initializer=random_ops.truncated_normal([100, 10]),
              use_resource=use_resource,
          )
          # The next variable illustrates the necessity of restoring collections
          # in a deterministic fashion when using ResourceVariables.
          variable_scope.get_variable(
              name="another",
              shape=[],
              collections=["a", "b", "z", "f", "e", "d", "g"],
              use_resource=use_resource,
          )
  
      self._testExportImportAcrossScopes(
          make_graph_with_partitioned_variables, use_resource=False
      )
      self._testExportImportAcrossScopes(
          make_graph_with_partitioned_variables, use_resource=True
      )
  
imports: import math
  import os.path
  import random
  import shutil
  from tensorflow.core.framework import graph_pb2
  from tensorflow.core.protobuf import meta_graph_pb2
  from tensorflow.python.client import session
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import function
  from tensorflow.python.framework import meta_graph
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import cond
  from tensorflow.python.ops import data_flow_ops
  from tensorflow.python.ops import gradients_impl
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import metrics
  from tensorflow.python.ops import nn_ops
  from tensorflow.python.ops import partitioned_variables
  from tensorflow.python.ops import random_ops
  from tensorflow.python.ops import resource_variable_ops
  from tensorflow.python.ops import variable_scope
  from tensorflow.python.ops import variables
  from tensorflow.python.ops import while_loop
  from tensorflow.python.platform import gfile
  from tensorflow.python.platform import test
  from tensorflow.python.training import queue_runner_impl
label_desc: Use image node_id 1 for calling the ExportImportAcrossScopesTest obj's underlying member method code with example usage: obj.testPartitionedVariables() without return types