code: public boolean isBlacklisted(String nodeName, ResourceType type) {
      List<ResourceType> blacklistedResourceTypes =
        blacklistedNodes.get(nodeName);
      if (blacklistedResourceTypes != null) {
        synchronized (blacklistedResourceTypes) {
          return blacklistedResourceTypes.contains(type);
        }
      } else {
        return false;
      }
    }
docs: Check if a resource on a node is blacklisted.
  
  @param nodeName The node name.
  @param type The type of resource to check for blacklisting.
  @return A boolean value that is true if blacklisted, false if not.