code: def test_get_task(self):
      spec = phoenix_spec_pb2.PhoenixSpec(
          problem_type=phoenix_spec_pb2.PhoenixSpec.DNN
      )
      text_format.Merge(
          """
          multi_task_spec {
            label_name: "label1"
            number_of_classes: 10
          }
          multi_task_spec {
            label_name: "label2"
            number_of_classes: 5
          }
      """,
          spec,
      )
      new_tower = task_manager.Task.get_task(
          phoenix_spec=spec,
          tower_name="label1_0_search_generator",
          architecture=np.array([1]),
          is_training=True,
          logits_dimesnion=10,
          is_frozen=False,
          hparams={},
          model_directory="/tmp/",
          generator_name="search_generator",
          previous_tower_name=None,
          previous_model_dir=None,
      )
      self.assertIsNone(new_tower.previous_model_dir)
      imported_tower = task_manager.Task.get_task(
          phoenix_spec=spec,
          tower_name="label1_0_prior_generator",
          architecture=np.array([]),
          is_training=True,
          logits_dimesnion=10,
          is_frozen=False,
          hparams={},
          model_directory="/tmp/",
          generator_name="prior_generator",
          previous_tower_name="label1_0_search_generator",
          previous_model_dir="/tmp/oldmodel",
      )
      self.assertEqual(
          imported_tower.previous_model_dir, "/tmp/oldmodel"
      )
  
imports: import collections
  from absl.testing import parameterized
  from model_search import hparam
  from model_search import loss_fns
  from model_search import task_manager
  from model_search.architecture import architecture_utils
  from model_search.generators import trial_utils
  from model_search.proto import phoenix_spec_pb2
  import numpy
  import tensorflow.compat.v2
  from google.protobuf import text_format
label_desc: Use image node_id 10 for calling the TaskManagerTest obj's underlying member method code with example usage: obj.test_get_task() without return types