code: def get_all_bands(self, role=None, statuses=None):
      if statuses == {NodeStatus.READY}:
          return self.ready_bands
      else:
          return self.all_bands
  
imports: import numpy
  import asyncio
  import pytest
  from .....None import oscar
  from .....core import ChunkGraph
  from .....tensor.fetch import TensorFetch
  from .....tensor.arithmetic import TensorTreeAdd
  from ....cluster import ClusterAPI
  from ....cluster.core import NodeRole, NodeStatus
  from ....cluster.uploader import NodeInfoUploaderActor
  from ....cluster.supervisor.locator import SupervisorPeerLocatorActor
  from ....cluster.supervisor.node_info import NodeInfoCollectorActor
  from ....meta import MockMetaAPI
  from ....session import MockSessionAPI
  from ....subtask import Subtask
  from ...supervisor import AssignerActor
  from ...errors import NoMatchingSlots, NoAvailableBand
label_desc: Use image node_id 2 for calling the MockNodeInfoCollectorActor obj's underlying member method code with example usage: obj.get_all_bands(role, statuses) and returns: self, self