code: def testRaggedPlaceholderRaisesExceptionInEagerMode(self):
      if context.executing_eagerly():
          with self.assertRaises(RuntimeError):
              ragged_factory_ops.placeholder(dtypes.int32, 1, [])
  
file_path: tensorflow/tensorflow/python/ops/ragged/ragged_placeholder_op_test.py
imports: from absl.testing import parameterized
  from tensorflow.python.eager import context
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops.ragged import ragged_factory_ops
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 2 for calling the RaggedPlaceholderOpTest obj's underlying member method code with example usage: obj.testRaggedPlaceholderRaisesExceptionInEagerMode() without return types