code: def test_fast_restarts_feature():
      def is_featured_off():
          return hl._get_flags("use_fast_restarts", "cachedir") == {
              "use_fast_restarts": None,
              "cachedir": None,
          }
  
      @with_flags(use_fast_restarts="1")
      def uses_fast_restarts():
          return hl._get_flags("use_fast_restarts", "cachedir") == {
              "use_fast_restarts": "1",
              "cachedir": None,
          }
  
      @with_flags(
          use_fast_restarts="1", cachedir="gs://my-bucket/object-prefix"
      )
      def uses_cachedir():
          return hl._get_flags("use_fast_restarts", "cachedir") == {
              "use_fast_restarts": "1",
              "cachedir": "gs://my-bucket/object-prefix",
          }
  
      assert is_featured_off()
      assert uses_fast_restarts()
      assert is_featured_off()
      assert uses_cachedir()
      assert is_featured_off()
  
file_path: hail/hail/python/test/hail/test_context.py
imports: from typing import Tuple, Dict, Optional
  import hail
  from hail.utils.java import Env
  from hail.backend.backend import Backend
  from hail.backend.spark_backend import SparkBackend
  from test.hail.helpers import skip_unless_spark_backend, hl_init_for_test, hl_stop_for_test, qobtest, with_flags
label_desc: Use image node_id 7 for calling a global function with example usage: test_fast_restarts_feature() and returns: unknown, unknown, unknown