docs: public static boolean checkKeyBelongsToPartition(int nodeId,
                                                       byte[] key,
                                                       HashMap<Integer, List<Integer>> replicaToPartitionList,
                                                       Cluster cluster,
                                                       StoreDefinition storeDef) {
          boolean checkResult = false;
          if(storeDef.getRoutingStrategyType().equals(RoutingStrategyType.TO_ALL_STRATEGY)
             || storeDef.getRoutingStrategyType()
                        .equals(RoutingStrategyType.TO_ALL_LOCAL_PREF_STRATEGY)) {
              checkResult = true;
          } else {
              List<Integer> keyPartitions = new RoutingStrategyFactory().updateRoutingStrategy(storeDef,
                                                                                               cluster)
                                                                        .getPartitionList(key);
              List<Integer> nodePartitions = cluster.getNodeById(nodeId).getPartitionIds();
              checkResult = StoreRoutingPlan.checkKeyBelongsToPartition(keyPartitions,
                                                                        nodePartitions,
                                                                        replicaToPartitionList);
          }
          return checkResult;
      }