code: @SuppressWarnings("unused")
      private Map<Integer, LocalAssignment> readMyTasks(StormClusterState stormClusterState, String topologyId,
                                                        String supervisorId, Assignment assignmentInfo) throws Exception {
          Map<Integer, LocalAssignment> portTasks = new HashMap<>();
  
          Set<ResourceWorkerSlot> workers = assignmentInfo.getWorkers();
          if (workers == null) {
              LOG.error("No worker found for assignment {}!", assignmentInfo);
              return portTasks;
          }
  
          for (ResourceWorkerSlot worker : workers) {
              if (!supervisorId.equals(worker.getNodeId())) {
                  continue;
              }
              portTasks.put(worker.getPort(), new LocalAssignment(
                      topologyId, worker.getTasks(), Common.topologyIdToName(topologyId), worker.getMemSize(),
                      worker.getCpu(), worker.getJvm(), assignmentInfo.getTimeStamp()));
          }
  
          return portTasks;
      }
docs: get local node's tasks
  
  @return Map: [port, LocalAssignment]