code: def __init__(self, *args, **kwargs):
      super().__init__(*args, **kwargs)
      self._events = defaultdict(list)
      self._results = dict()
  
imports: import asyncio
  import time
  from collections import defaultdict
  import numpy
  import pytest
  from ..api.web import WebSchedulingAPI
  from ....None import oscar
  from ....None import remote
  from ....None import tensor
  from ....core.graph import TileableGraph, TileableGraphBuilder, ChunkGraphBuilder
  from ....resource import Resource
  from ...None import start_services, stop_services, NodeRole
  from ...session import SessionAPI
  from ...storage import StorageAPI, MockStorageAPI
  from ...subtask import Subtask, SubtaskResult, SubtaskStatus
  from ...task import new_task_id
  from ...task.supervisor.manager import TaskManagerActor
  from ...web import WebActor
  from ..None import SchedulingAPI
  from ..supervisor import GlobalResourceManagerActor
label_desc: Use image node_id 1 to create a new FakeTaskManager object from inherited base classes: TaskManagerActor with example: obj = FakeTaskManager()