code: def must_stop(state):
      return state in {
          State.INTERRUPTED,
          State.WORKER_BUG,
      }
  
imports: import dataclasses
  import json
  from typing import Any
  from .utils import StrJSON, TestName, FilterTuple, format_duration, normalize_test_name, print_warning
label_desc: Use image node_id 3 for calling the State obj's underlying member method code with example usage: obj.must_stop(state) and returns: unknown