code: def test_failure_config_init():
      FailureConfig(fail_fast=True)
      FailureConfig(fail_fast=False)
      FailureConfig(fail_fast="raise")
  
      with pytest.raises(ValueError):
          FailureConfig(fail_fast="fail")
  
      FailureConfig(fail_fast=True, max_failures=0)
      with pytest.raises(ValueError):
          FailureConfig(fail_fast=True, max_failures=1)
  
imports: import pytest
  import pyarrow.fs
  from ray.train import ScalingConfig, FailureConfig, CheckpointConfig, RunConfig
  from ray.air.constants import MAX_REPR_LENGTH
label_desc: Use image node_id 3 for calling a global function with example usage: test_failure_config_init() without return types