code: def test_convert_variables_to_tensors(self):
      ct = CT()
      data = [
          resource_variable_ops.ResourceVariable(1),
          resource_variable_ops.ResourceVariable(2),
          constant_op.constant(3),
          [4],
          5,
          ct,
      ]
      if not context.executing_eagerly():
          self.evaluate(variables.global_variables_initializer())
  
      results = variable_utils.convert_variables_to_tensors(data)
      expected_results = [1, 2, 3, [4], 5, ct]
      # Only ResourceVariables are converted to Tensors.
      self.assertIsInstance(results[0], tensor.Tensor)
      self.assertIsInstance(results[1], tensor.Tensor)
      self.assertIsInstance(results[2], tensor.Tensor)
      self.assertIsInstance(results[3], list)
      self.assertIsInstance(results[4], int)
      self.assertIs(results[5], ct)
      results[:3] = self.evaluate(results[:3])
      self.assertAllEqual(results, expected_results)
  
imports: from tensorflow.python.eager import context
  from tensorflow.python.framework import composite_tensor
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import resource_variable_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import test
  from tensorflow.python.util import nest
  from tensorflow.python.util import variable_utils
label_desc: Use image node_id 1 for calling the VariableUtilsTest obj's underlying member method code with example usage: obj.test_convert_variables_to_tensors() without return types