code: def test_deepspeed_with_env_path(
      tmp_path, monkeypatch, deepspeed_config
  ):
      """Test to ensure if we pass an env variable, we load the config from the path."""
      config_path = tmp_path / "temp.json"
      with open(config_path, "w") as f:
          f.write(json.dumps(deepspeed_config))
      monkeypatch.setenv("PL_DEEPSPEED_CONFIG_PATH", str(config_path))
      strategy = DeepSpeedStrategy()
      assert strategy.config == deepspeed_config
  
imports: import json
  from re import escape
  from unittest import mock
  from unittest.mock import ANY, Mock
  import pytest
  import torch
  from lightning.fabric.accelerators import CPUAccelerator, CUDAAccelerator
  from lightning.fabric.strategies import DeepSpeedStrategy
  from torch.optim import Optimizer
  from tests_fabric.helpers.runif import RunIf
label_desc: Use image node_id 5 for calling a global function with example usage: test_deepspeed_with_env_path(tmp_path, monkeypatch, deepspeed_config) without return types