code: def testNewAxis(self):
      # rt: [[[['a', 'b'], ['c', 'd']], [], [['e', 'f']]], []]
      splits1 = [0, 3, 3]
      splits2 = [0, 2, 2, 3]
      values = constant_op.constant(
          [["a", "b"], ["c", "d"], ["e", "f"]]
      )
      rt = RaggedTensor.from_nested_row_splits(
          values, [splits1, splits2]
      )
      rt_newaxis0 = rt[array_ops.newaxis]
      rt_newaxis1 = rt[:, array_ops.newaxis]
      rt_newaxis2 = rt[:, :, array_ops.newaxis]
      rt_newaxis3 = rt[:, :, :, array_ops.newaxis]
      rt_newaxis4 = rt[:, :, :, :, array_ops.newaxis]
  
      self.assertAllEqual(
          rt, [[[[b"a", b"b"], [b"c", b"d"]], [], [[b"e", b"f"]]], []]
      )
      self.assertAllEqual(
          rt_newaxis0,
          [[[[[b"a", b"b"], [b"c", b"d"]], [], [[b"e", b"f"]]], []]],
      )
      self.assertAllEqual(
          rt_newaxis1,
          [[[[[b"a", b"b"], [b"c", b"d"]], [], [[b"e", b"f"]]]], [[]]],
      )
      self.assertAllEqual(
          rt_newaxis2,
          [
              [[[[b"a", b"b"], [b"c", b"d"]]], [[]], [[[b"e", b"f"]]]],
              [],
          ],
      )
      self.assertAllEqual(
          rt_newaxis3,
          [
              [[[[b"a", b"b"]], [[b"c", b"d"]]], [], [[[b"e", b"f"]]]],
              [],
          ],
      )
      self.assertAllEqual(
          rt_newaxis4,
          [
              [
                  [[[b"a"], [b"b"]], [[b"c"], [b"d"]]],
                  [],
                  [[[b"e"], [b"f"]]],
              ],
              [],
          ],
      )
  
      self.assertEqual(rt.ragged_rank, 2)
      self.assertEqual(rt_newaxis0.ragged_rank, 3)
      self.assertEqual(rt_newaxis1.ragged_rank, 3)
      self.assertEqual(rt_newaxis2.ragged_rank, 3)
      self.assertEqual(rt_newaxis3.ragged_rank, 2)
      self.assertEqual(rt_newaxis4.ragged_rank, 2)
  
      self.assertEqual(
          rt_newaxis0.shape.as_list(), [1, 2, None, None, 2]
      )
      self.assertEqual(
          rt_newaxis1.shape.as_list(), [2, 1, None, None, 2]
      )
      self.assertEqual(
          rt_newaxis2.shape.as_list(), [2, None, 1, None, 2]
      )
      self.assertEqual(
          rt_newaxis3.shape.as_list(), [2, None, None, 1, 2]
      )
      self.assertEqual(
          rt_newaxis4.shape.as_list(), [2, None, None, 2, 1]
      )
  
imports: import re
  from absl.testing import parameterized
  from tensorflow.python.eager import context
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import tensor_getitem_override
  from tensorflow.python.ops.ragged import ragged_factory_ops
  from tensorflow.python.ops.ragged.ragged_tensor import RaggedTensor
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 12 for calling the RaggedGetItemTest obj's underlying member method code with example usage: obj.testNewAxis() without return types