docstr: run a model with certain task
docstr_tok: ["run","a","model","with","certain","task"]
code: def run_model_with_task(self, task, model):
      """run a model with certain task"""
      TASKS = {
          TEXT_CLS: self.run_text_classification,
          POS_TAGGING: self.run_pos_tagging,
          NLI: self.run_nli,
      }
      assert task in TASKS
      TASKS[task](model)
  
file_path: fastNLP/tests/models/torch/model_runner.py
imports: from fastNLP.envs.imports import _NEED_IMPORT_TORCH
  from fastNLP import Trainer, Evaluator, DataSet, Callback
  from fastNLP import Accuracy
  from random import randrange
  from fastNLP import TorchDataLoader
label_desc: Use image node_id 10 for calling the ModelRunner obj's underlying member method code with example usage: obj.run_model_with_task(task, model) without return types