code: def labels_with_repeats(
      means: npt.ArrayLike, std_dev: npt.ArrayLike
  ) -> npt.ArrayLike:
      """Generate labels for unique combinations of means and std_dev."""
      data = [means, std_dev]
      unique, indices = np.unique(data, axis=1, return_inverse=True)
      labels = np.arange(unique.shape[1])
      return labels[indices]
  
file_path: sktime/sktime/annotation/datagen.py
imports: from typing import Union
  import numpy
  import numpy.typing
  from sklearn.utils.validation import check_random_state
label_desc: Use image node_id 5 for calling a global function with example usage: labels_with_repeats(means, std_dev) and returns: labels