code: def testConcat(self):
      with self.cached_session() as session:
          var_x = variable_scope.get_variable(
              "x",
              initializer=constant_op.constant([1.0, 2.0]),
              partitioner=partitioned_variables.variable_axis_size_partitioner(
                  4
              ),
          )
  
          c = constant_op.constant(1.0)
          with ops.control_dependencies([c]):
              ops_before_concat = session.graph.get_operations()
              value = (
                  var_x._concat()
              )  # pylint: disable=protected-access
              concat_ops = [
                  op
                  for op in session.graph.get_operations()
                  if op not in ops_before_concat
              ]
  
          concat_control_inputs = [
              ci for op in concat_ops for ci in op.control_inputs
          ]
          self.assertTrue(
              c.op in concat_control_inputs,
              "var_x._concat() should get control dependencies from its scope.",
          )
          self.evaluate(variables.global_variables_initializer())
          self.assertAllClose(value, var_x.as_tensor())
  
imports: import os
  import numpy
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  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 init_ops
  from tensorflow.python.ops import partitioned_variables
  from tensorflow.python.ops import random_ops
  from tensorflow.python.ops import variable_scope
  from tensorflow.python.ops import variable_v1
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import test
  from tensorflow.python.training import saver
label_desc: Use image node_id 15 for calling the PartitionedVariablesTestCase obj's underlying member method code with example usage: obj.testConcat() without return types