code: def has_meaningful_duration(state):
      # Consider that the duration is meaningless for these cases.
      # For example, if a whole test file is skipped, its duration
      # is unlikely to be the duration of executing its tests,
      # but just the duration to execute code which skips the test.
      return state not in {
          State.SKIPPED,
          State.RESOURCE_DENIED,
          State.INTERRUPTED,
          State.WORKER_FAILED,
          State.WORKER_BUG,
          State.DID_NOT_RUN,
      }
  
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 2 for calling the State obj's underlying member method code with example usage: obj.has_meaningful_duration(state) and returns: unknown