class_docstr: Tests for slicing LinearOperators.
class_docstr_tok: ["Tests","for","slicing","LinearOperators","."]
code: def test_single_param_slice_broadcast_batch_leading_newaxis(self):
      sliced = slicing._slice_single_param(
          array_ops.zeros([4, 3, 1]),  # batch = [4, 3], event = [1]
          param_ndims_to_matrix_ndims=1,
          slices=make_slices[
              array_ops.newaxis,
              ...,
              array_ops.newaxis,
              2:,
              array_ops.newaxis,
          ],
          batch_shape=constant_op.constant([7, 4, 3]),
      )
      expected = array_ops.zeros([1, 4, 3])[
          array_ops.newaxis,
          ...,
          array_ops.newaxis,
          2:,
          array_ops.newaxis,
      ].shape + [1]
      self.assertAllEqual(expected, 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 14 for calling the SlicingTest obj's underlying member method code with example usage: obj.test_single_param_slice_broadcast_batch_leading_newaxis() without return types