code: def test_placeholder_with_default_fed(self):
      with self.session() as sess, self.test_scope():
          v = resource_variable_ops.ResourceVariable(4.0)
          ph = array_ops.placeholder_with_default(v, shape=[])
          out = ph * 2
          sess.run(variables.variables_initializer([v]))
          self.assertEqual(2.0, sess.run(out, {ph: 1.0}))
  
file_path: tensorflow-upstream/tensorflow/compiler/tests/placeholder_test.py
imports: from tensorflow.compiler.tests import xla_test
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import resource_variable_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 2 for calling the PlaceholderTest obj's underlying member method code with example usage: obj.test_placeholder_with_default_fed() without return types