code: def _parse_options_from_api(
      payload: "FeedbackQuestionModel",
  ) -> Union[List[str], Dict[str, str]]:
      if all(
          [
              label["value"] == label["text"]
              for label in payload.settings["options"]
          ]
      ):
          return [
              label["value"] for label in payload.settings["options"]
          ]
      else:
          return {
              label["value"]: label["text"]
              for label in payload.settings["options"]
          }
  
imports: from typing import TYPE_CHECKING, Dict, List, Union
  from argilla.client.feedback.schemas.questions import LabelQuestion, MultiLabelQuestion, RankingQuestion, RatingQuestion, TextQuestion
  from argilla.client.feedback.schemas.remote.shared import RemoteSchema
label_desc: Use image node_id 1 for calling a global function with example usage: _parse_options_from_api(payload) and returns: unknown, unknown