docstr: Tests for the _default_inner_shape_for_pylist helper function.
docstr_tok: ["Tests","for","the","_default_inner_shape_for_pylist","helper","function","."]
code: def testDefaultInnerShapeForPylistHelper(
      self,
      pylist,
      ragged_rank,
      inner_shape=None,
      exception=None,
      message=None,
  ):
      """Tests for the _default_inner_shape_for_pylist helper function."""
      if exception is not None:
          self.assertRaisesRegex(
              exception,
              message,
              ragged.ragged_factory_ops._default_inner_shape_for_pylist,
              pylist,
              ragged_rank,
          )
      else:
          self.assertEqual(
              ragged.ragged_factory_ops._default_inner_shape_for_pylist(
                  pylist, ragged_rank
              ),
              inner_shape,
          )
  
file_path: tensorflow/tensorflow/python/ops/ragged/ragged_const_op_test.py
imports: from absl.testing import parameterized
  import numpy
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import ragged
  from tensorflow.python.ops.ragged import ragged_factory_ops
  from tensorflow.python.ops.ragged import ragged_tensor
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 4 for calling the RaggedConstOpTest obj's underlying member method code with example usage: obj.testDefaultInnerShapeForPylistHelper(pylist, ragged_rank, inner_shape, exception, message) without return types