code: def testMultidimOverallSlices(self):
      data = [
          {
              constants.SLICE_KEY_TYPES_KEY: types.VarLenTensorValue.from_dense_rows(  # variable length batch case
                  [
                      slicer.slice_keys_to_numpy_array(
                          [(("gender", "f"),), ()]
                      ),
                      slicer.slice_keys_to_numpy_array([()]),
                  ]
              )
          },
          {
              constants.SLICE_KEY_TYPES_KEY: np.array(  # fixed length batch case
                  [
                      slicer.slice_keys_to_numpy_array([()]),
                      slicer.slice_keys_to_numpy_array([()]),
                  ]
              )
          },
      ]
  
      with beam.Pipeline() as pipeline:
          result = (
              pipeline
              | "CreateTestInput" >> beam.Create(data, reshuffle=False)
              | "FanoutSlices" >> slicer.FanoutSlices()
          )
  
          def check_result(got):
              try:
                  del data[0][constants.SLICE_KEY_TYPES_KEY]
                  del data[1][constants.SLICE_KEY_TYPES_KEY]
                  expected_result = [
                      ((("gender", "f"),), data[0]),
                      ((), data[0]),
                      ((), data[1]),
                  ]
                  self.assertCountEqual(got, expected_result)
              except AssertionError as err:
                  raise util.BeamAssertException(err)
  
          util.assert_that(result, check_result)
  
imports: from absl.testing import parameterized
  import apache_beam
  from apache_beam.testing import util
  import numpy
  import six
  import tensorflow
  from tensorflow_model_analysis import constants
  from tensorflow_model_analysis.api import types
  from tensorflow_model_analysis.eval_saved_model import testutil
  from tensorflow_model_analysis.extractors import slice_key_extractor
  from tensorflow_model_analysis.post_export_metrics import metric_keys
  from tensorflow_model_analysis.proto import config_pb2
  from tensorflow_model_analysis.proto import metrics_for_slice_pb2
  from tensorflow_model_analysis.slicer import slicer_lib
  from google.protobuf import text_format
label_desc: Use image node_id 23 for calling the SlicerTest obj's underlying member method code with example usage: obj.testMultidimOverallSlices() without return types