code: def create_translation_task(dataset, language_pair, version=0):
      class TranslationTask(GeneralTranslationTask):
          VERSION = version
  
          def __init__(self):
              super().__init__(dataset, language_pair)
  
      return TranslationTask
  
imports: import pycountry
  from pprint import pprint
  from sacrebleu import sacrebleu
  from lm_eval import metrics
  from lm_eval.base import Task, rf
  from typing import List
label_desc: Use image node_id 4 for calling a global function with example usage: create_translation_task(dataset, language_pair, version) and returns: TranslationTask