code: def question_answering(
      input: QuestionAnsweringInput,
  ) -> outputs.ClassificationOutput:
      """Question answering based on a text used as context."""
  
      results = nlp(
          {"question": input.question, "context": input.context},
          topk=input.number_of_answers,
      )
  
      return outputs.ClassificationOutput(
          __root__=[
              outputs.ScoredLabel(
                  label=result["answer"], score=result["score"]
              )
              for result in results
          ]
      )
  
imports: from pydantic import BaseModel, Field
  from transformers import pipeline
  from opyrator.components import outputs
label_desc: Use image node_id 1 for calling a global function with example usage: question_answering(input) and returns: outputs