hunk.code_window:     ray.shutdown()
       # Test unavailable type
       runtime_env = {"conda": {"dependencies": ["toolz"]}, "eager_install": 123}
       with pytest.raises(TypeError):
           ray.init(runtime_env=runtime_env)
       ray.shutdown()
  
hunk.labels: keep keep keep keep replace keep keep keep
hunk.after_edit:         ray.init(runtime_env=runtime_env_class(**runtime_env))
  
hunk.file_path: python/ray/tests/test_runtime_env_complicated.py
hunk.type: replace