class_docstr: Tests for slicing LinearOperators.
class_docstr_tok: ["Tests","for","slicing","LinearOperators","."]
code: def test_single_param_slice_tensor(self):
      param = array_ops.placeholder_with_default(
          array_ops.zeros([7, 6, 5, 4, 3]), shape=None
      )
      idx = array_ops.placeholder_with_default(
          constant_op.constant(2, dtype=dtypes.int32), shape=[]
      )
      sliced = slicing._slice_single_param(
          param,
          param_ndims_to_matrix_ndims=2,
          slices=make_slices[:, idx],
          batch_shape=constant_op.constant([7, 6, 5]),
      )
      self.assertAllEqual((7, 5, 4, 3), self.evaluate(sliced).shape)
  
imports: 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.linalg import linalg
  from tensorflow.python.ops.linalg import linear_operator_test_util
  from tensorflow.python.ops.linalg import slicing
  from tensorflow.python.platform import test
label_desc: Use image node_id 11 for calling the SlicingTest obj's underlying member method code with example usage: obj.test_single_param_slice_tensor() without return types