code: def is_failed(self, fail_env_changed: bool) -> bool:
      if self.state == State.ENV_CHANGED:
          return fail_env_changed
      return State.is_failed(self.state)
  
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 1 for calling the TestResult obj's underlying member method code with example usage: obj.is_failed(fail_env_changed) and returns: State, fail_env_changed