docstr: Tests for the _find_scalar_and_max_depth helper function.
docstr_tok: ["Tests","for","the","_find_scalar_and_max_depth","helper","function","."]
code: def testScalarAndMaxDepthHelper(
      self,
      pylist,
      scalar_depth=None,
      max_depth=None,
      exception=None,
      message=None,
  ):
      """Tests for the _find_scalar_and_max_depth helper function."""
      if exception is not None:
          self.assertRaisesRegex(
              exception,
              message,
              ragged_factory_ops._find_scalar_and_max_depth,
              pylist,
          )
      else:
          self.assertEqual(
              ragged_factory_ops._find_scalar_and_max_depth(pylist),
              (scalar_depth, max_depth),
          )
  
file_path: tensorflow-upstream/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 3 for calling the RaggedConstOpTest obj's underlying member method code with example usage: obj.testScalarAndMaxDepthHelper(pylist, scalar_depth, max_depth, exception, message) without return types