code: def test_stopping_criteria():
      criteria = StoppingCriteria(
          0, [StopSequenceCriteria("/test;")], max_new_tokens=5
      )
      assert criteria(65827, "/test") == (False, None)
      assert criteria(30, ";") == (
          True,
          FinishReason.FINISH_REASON_STOP_SEQUENCE,
      )
  
imports: import torch
  from text_generation_server.utils.tokens import StopSequenceCriteria, StoppingCriteria, FinishReason, batch_top_tokens
label_desc: Use image node_id 3 for calling a global function with example usage: test_stopping_criteria() without return types