code: def test_get_by_id_task(self):
      task = self.dal.task.create(Task(self.task_input_dict))
      result = self.dal.task.get_by_id(task.id)
      assert task.id == result.id
      assert task.model_id == result.model_id
      assert task.command == result.command
      assert task.start_time == result.start_time
      assert task.end_time == result.end_time
      assert task.duration == result.duration
  
imports: from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  import os
  import tempfile
  import platform
  from datetime import datetime
  from datmo.core.storage.driver.blitzdb_dal_driver import BlitzDBDALDriver
  from datmo.core.storage.local.dal import LocalDAL
  from datmo.core.entity.model import Model
  from datmo.core.entity.task import Task
  from datmo.core.util.exceptions import EntityNotFound, InvalidArgumentType
label_desc: Use image node_id 4 for calling the TestLocalDAL obj's underlying member method code with example usage: obj.test_get_by_id_task() without return types