class_docstr: Tests for get_single_slice_specs.
class_docstr_tok: ["Tests","for","get_single_slice_specs","."]
code: def test_slicing_by_custom_indices_one_pair(
      self, custom_train_indices, custom_test_indices, expected_groups
  ):
      input_data = SlicingSpec(
          all_custom_train_indices=[custom_train_indices],
          all_custom_test_indices=[custom_test_indices],
      )
      expected = [self.ENTIRE_DATASET_SLICE] + [
          SingleSliceSpec(
              SlicingFeature.CUSTOM,
              (custom_train_indices, custom_test_indices, g, None),
          )
          for g in expected_groups
      ]
      output = get_single_slice_specs(input_data)
      self.assertTrue(_are_lists_equal(output, expected))
  
imports: import logging
  from absl.testing import absltest
  from absl.testing import parameterized
  from absl.testing.absltest import mock
  import numpy
  from tensorflow_privacy.privacy.privacy_tests.membership_inference_attack.data_structures import AttackInputData
  from tensorflow_privacy.privacy.privacy_tests.membership_inference_attack.data_structures import SingleSliceSpec
  from tensorflow_privacy.privacy.privacy_tests.membership_inference_attack.data_structures import SlicingFeature
  from tensorflow_privacy.privacy.privacy_tests.membership_inference_attack.data_structures import SlicingSpec
  from tensorflow_privacy.privacy.privacy_tests.membership_inference_attack.dataset_slicing import get_single_slice_specs
  from tensorflow_privacy.privacy.privacy_tests.membership_inference_attack.dataset_slicing import get_slice
label_desc: Use image node_id 7 for calling the SingleSliceSpecsTest obj's underlying member method code with example usage: obj.test_slicing_by_custom_indices_one_pair(custom_train_indices, custom_test_indices, expected_groups) without return types