code: def test_inactive_environment(monkeypatch, env_fixture_0):
      """Test that initializing an Experiment without an active `Environment` raises
      `EnvironmentInactiveError`"""
      # Currently have a valid `settings.G.Env` (`env_fixture_0`), so set it to None
      monkeypatch.setattr(settings.G, "Env", None)
      with pytest.raises(EnvironmentInactiveError):
          BaseExperiment(LogisticRegression, dict())
  
file_path: hyperparameter_hunter/tests/test_experiments.py
imports: from hyperparameter_hunter import settings
  from hyperparameter_hunter.experiments import BaseExperiment, CVExperiment, get_cv_indices
  from hyperparameter_hunter.i_o.exceptions import EnvironmentInactiveError, EnvironmentInvalidError
  import numpy
  from numpy.testing import assert_equal
  import pytest
  from sklearn.linear_model import LogisticRegression
  from sklearn.model_selection import KFold, RepeatedKFold
label_desc: Use image node_id 1 for calling a global function with example usage: test_inactive_environment(monkeypatch, env_fixture_0) without return types