code: def disabled_testRaggedFromTensor(
      self,
      tensor,
      expected,
      lengths=None,
      padding=None,
      ragged_rank=1,
      use_ragged_rank=True,
      expected_shape=None,
  ):
      dt = constant_op.constant(tensor)
      if use_ragged_rank:
          rt = RaggedTensor.from_tensor(
              dt, lengths, padding, ragged_rank
          )
      else:
          rt = RaggedTensor.from_tensor(dt, lengths, padding)
      self.assertEqual(type(rt), RaggedTensor)
      self.assertEqual(rt.ragged_rank, ragged_rank)
      self.assertTrue(
          dt.shape.is_compatible_with(rt.shape),
          "%s is incompatible with %s" % (dt.shape, rt.shape),
      )
      if expected_shape is not None:
          self.assertEqual(rt.shape.as_list(), expected_shape)
      self.assertAllEqual(rt, expected)
      self.assertAllEqual(
          rt,
          RaggedTensor.from_nested_row_splits(
              rt.flat_values, rt.nested_row_splits, validate=True
          ),
      )
  
file_path: tensorflow-upstream/tensorflow/python/ops/ragged/ragged_from_tensor_op_test.py
imports: from absl.testing import parameterized
  import numpy
  from tensorflow.python.eager import context
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops.ragged.ragged_tensor import RaggedTensor
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 2 for calling the RaggedTensorFromTensorOpTest obj's underlying member method code with example usage: obj.disabled_testRaggedFromTensor(tensor, expected, lengths, padding, ragged_rank, use_ragged_rank, expected_shape) without return types