code: def get_multihot_labels_for_test(
      num_samples: int, num_classes: int
  ) -> np.ndarray:
      """Generate a array of multihot labels.
  
      Given an integer 'num_samples', generate a deterministic array of
      'num_classes'multihot labels. Each multihot label is the list of bits (0/1) of
      the corresponding row number in the array, upto 'num_classes'. If the value
      of num_classes < num_samples, then the bit list repeats.
      e.g. if num_samples=10 and num_classes=3, row=3 corresponds to the label
      vector [0, 1, 1].
  
      Args:
        num_samples: Number of samples for which to generate test labels.
        num_classes: Number of classes for which to generate test multihot labels.
  
      Returns:
        Numpy integer array with rows=number of samples, and columns=length of the
          bit-representation of the number of samples.
      """
      m = (
          2**num_classes
      )  # Number of unique labels given the number of classes.
      bit_format = f"0{num_classes}b"  # Bit representation format with leading 0s.
      return np.asarray(
          [list(format(i % m, bit_format)) for i in range(num_samples)]
      ).astype(int)
  
imports: from unittest import mock
  from absl.testing import absltest
  from absl.testing import parameterized
  import numpy
  from tensorflow_privacy.privacy.privacy_tests import epsilon_lower_bound
  from tensorflow_privacy.privacy.privacy_tests.membership_inference_attack import membership_inference_attack
  from tensorflow_privacy.privacy.privacy_tests.membership_inference_attack import models
  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 AttackType
  from tensorflow_privacy.privacy.privacy_tests.membership_inference_attack.data_structures import DataSize
  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
label_desc: Use image node_id 2 for calling a global function with example usage: get_multihot_labels_for_test(num_samples, num_classes) and returns: np