docstr: The `compute_unified_responses` function takes a question and a strategy as input and applies the strategy
  to unify the responses for that question.
  
  Args:
      question The `question` parameter can be either a string representing the name of the
          question, or an instance of one of the question classes (`LabelQuestion`, `MultiLabelQuestion`,
          `RatingQuestion`, `RankingQuestion`).
      strategy The `strategy` parameter is used to specify the strategy to be used for unifying
          responses for a given question. It can be either a string or an instance of a strategy class.
docstr_tok: ["The","`","compute_unified_responses","`","function","takes","a","question","and","a","strategy","as","input","and","applies","the","strategy","to","unify","the","responses","for","that","question",".","Args",":","question","The","`","question","`","parameter","can","be","either","a","string","representing","the","name","of","the","question",",","or","an","instance","of","one","of","the","question","classes","(","`","LabelQuestion","`",",","`","MultiLabelQuestion","`",",","`","RatingQuestion","`",",","`","RankingQuestion","`",")",".","strategy","The","`","strategy","`","parameter","is","used","to","specify","the","strategy","to","be","used","for","unifying","responses","for","a","given","question",".","It","can","be","either","a","string","or","an","instance","of","a","strategy","class","."]
code: def compute_unified_responses(
      self: "FeedbackDatasetBase",
      question: Union[
          str, LabelQuestion, MultiLabelQuestion, RatingQuestion
      ],
      strategy: Union[
          str,
          LabelQuestionStrategy,
          MultiLabelQuestionStrategy,
          RatingQuestionStrategy,
          RankingQuestionStrategy,
      ],
  ) -> "FeedbackDataset":
      """
      The `compute_unified_responses` function takes a question and a strategy as input and applies the strategy
      to unify the responses for that question.
  
      Args:
          question The `question` parameter can be either a string representing the name of the
              question, or an instance of one of the question classes (`LabelQuestion`, `MultiLabelQuestion`,
              `RatingQuestion`, `RankingQuestion`).
          strategy The `strategy` parameter is used to specify the strategy to be used for unifying
              responses for a given question. It can be either a string or an instance of a strategy class.
      """
      if isinstance(question, str):
          question = self.question_by_name(question)
  
      if not strategy:
          strategy = "majority"
  
      if isinstance(strategy, str):
          if isinstance(question, LabelQuestion):
              strategy = LabelQuestionStrategy(strategy)
          elif isinstance(question, MultiLabelQuestion):
              strategy = MultiLabelQuestionStrategy(strategy)
          elif isinstance(question, RatingQuestion):
              strategy = RatingQuestionStrategy(strategy)
          elif isinstance(question, RankingQuestion):
              strategy = RankingQuestionStrategy(strategy)
          elif isinstance(question, TextQuestion):
              strategy = TextQuestionStrategy(strategy)
          else:
              raise ValueError(
                  f"Question {question} is not supported yet"
              )
  
      strategy.compute_unified_responses(self.records, question)
      return self
  
file_path: argilla/src/argilla/client/feedback/dataset/mixins.py
imports: import warnings
  from typing import TYPE_CHECKING, Dict, List, Optional, Union
  from argilla.client.feedback.dataset.base import FeedbackDatasetBase
  from argilla.client.feedback.schemas.questions import LabelQuestion, MultiLabelQuestion, RankingQuestion, RatingQuestion, TextQuestion
  from argilla.client.feedback.unification import LabelQuestionStrategy, MultiLabelQuestionStrategy, RankingQuestionStrategy, RatingQuestionStrategy, TextQuestionStrategy
label_desc: Use image node_id 2 for calling the UnificationMixin obj's underlying member method code with example usage: obj.compute_unified_responses(question, strategy) and returns: self