code: def test_build_task(self):
      config = self._get_fine_tuning_config()
      task = build_task(config)
      self.assertIsInstance(task, FineTuningTask)
  
      config = self._get_fine_tuning_config(pretrained_checkpoint=True)
  
      with mock.patch(
          "classy_vision.tasks.FineTuningTask.set_pretrained_checkpoint"
      ):
          task = build_task(config)
  
      self.assertIsInstance(task, FineTuningTask)
  
imports: import copy
  import unittest
  from typing import Any, Dict
  from unittest import mock
  import torch
  import torch.nn
  from classy_vision.generic.util import get_checkpoint_dict
  from classy_vision.losses import ClassyLoss, register_loss
  from classy_vision.tasks import build_task, FineTuningTask
  from classy_vision.trainer import LocalTrainer
  from test.generic.config_utils import get_fast_test_task_config
  from test.generic.utils import compare_model_state
  from torch.nn.modules.loss import CrossEntropyLoss
label_desc: Use image node_id 5 for calling the TestFineTuningTask obj's underlying member method code with example usage: obj.test_build_task() without return types