code: def apply_subtask_resources(
      self,
      band: Tuple,
      session_id: str,
      subtask_ids: List[str],
      subtask_resources: List[Resource],
  ):
      idx = (
          min(self._capacity, len(subtask_ids))
          if self._capacity >= 0
          else len(subtask_ids)
      )
      return subtask_ids[:idx]
  
file_path: mars/mars/services/scheduling/supervisor/tests/test_queueing.py
imports: import pytest
  from typing import Tuple, List
  from .....None import oscar
  from .....resource import Resource
  from ....cluster import MockClusterAPI
  from ....subtask import Subtask
  from ...supervisor import AssignerActor, SubtaskManagerActor, SubtaskQueueingActor, GlobalResourceManagerActor
label_desc: Use image node_id 3 for calling the MockSlotsActor obj's underlying member method code with example usage: obj.apply_subtask_resources(band, session_id, subtask_ids, subtask_resources) and returns: subtask_ids