code: public Map<Integer, ResourceWorkerSlot> getTaskToNodePortbyNode(String supervisorId) {
          Map<Integer, ResourceWorkerSlot> result = new HashMap<>();
          for (ResourceWorkerSlot worker : workers) {
              if (worker.getNodeId().equals(supervisorId)) {
                  result.put(worker.getPort(), worker);
              }
          }
          return result;
      }
docs: get workers for every supervisorId (node)
  
  @param supervisorId supervisor
  @return Map[Integer, WorkerSlot]