code: def run_batch_stop_criterion(
      next_tokens: torch.Tensor,
      requests: "RaggedRequestBatch",
      processor_map: Dict[str, Any],
  ) -> torch.Tensor:
      stop_fns = {k: v for k, v in processor_map.items() if "Stop" in k}
      done_tokens = run_batch_processing(
          next_tokens, requests, stop_fns
      )
      return done_tokens
  
imports: from typing import TYPE_CHECKING, Any, Dict, List
  import torch
label_desc: Use image node_id 4 for calling a global function with example usage: run_batch_stop_criterion(next_tokens, requests, processor_map) and returns: done_tokens