code: def map_str_to_int(values: List[str]) -> List[int]:
      """Helper function to work with label questions as numerical values.
  
      Args:
          values: responses or suggestions with the string labels.
  
      Returns:
          values: corresponding values as integers to compute the metric
      """
      unique_values = np.unique(values)
      map_values = {value: i for i, value in enumerate(unique_values)}
      return [map_values[value] for value in values]
  
file_path: argilla/src/argilla/client/feedback/metrics/utils.py
imports: from collections import defaultdict
  from typing import TYPE_CHECKING, Dict, List, Optional, Tuple, Union
  import numpy
  from tqdm import tqdm
  from argilla.client.feedback.dataset.remote.dataset import RemoteFeedbackDataset
  from argilla.client.feedback.schemas import RankingQuestion, TextQuestion
  from argilla.client.feedback.schemas.enums import ResponseStatusFilter
  from argilla.client.feedback.schemas.remote.questions import RemoteRankingQuestion
label_desc: Use image node_id 3 for calling a global function with example usage: map_str_to_int(values) and returns: unknown