code: def testGetitemFromScalarStruct(self, slice_spec, expected):
      # By default, lists are converted to RaggedTensors.
      struct = structured_tensor.StructuredTensor.from_pyval(
          EXAMPLE_STRUCT
      )
      self._TestGetItem(struct, slice_spec, expected)
  
      # Using an explicit TypeSpec, we can convert them to Tensors instead.
      struct2 = structured_tensor.StructuredTensor.from_pyval(
          EXAMPLE_STRUCT, EXAMPLE_STRUCT_SPEC1
      )
      self._TestGetItem(struct2, slice_spec, expected)
  
imports: from absl.testing import parameterized
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import tensor_shape
  from tensorflow.python.framework import tensor_spec
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops.structured import structured_tensor
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 3 for calling the StructuredTensorSliceTest obj's underlying member method code with example usage: obj.testGetitemFromScalarStruct(slice_spec, expected) without return types