code: def test_deepspeed_finetuning_strategy_key(
      strategy_key, strategy_metadata
  ):
      deepspeed_strategy_key = f"{strategy_key}_deepspeed"
  
      strategy = _FINETUNING_STRATEGIES_REGISTRY.get(key=strategy_key)(
          strategy_metadata=strategy_metadata
      ).strategy
      deepspeed_strategy = _FINETUNING_STRATEGIES_REGISTRY.get(
          key=deepspeed_strategy_key
      )(strategy_metadata=strategy_metadata).strategy
      assert strategy == deepspeed_strategy
  
imports: from numbers import Number
  from typing import Iterable, List, Optional, Tuple, Union
  import flash
  import pytest
  import pytorch_lightning
  import torch
  from flash.core.finetuning import _FINETUNING_STRATEGIES_REGISTRY
  from flash.core.model import Task
  from flash.core.utilities.imports import _DEEPSPEED_AVAILABLE, _TOPIC_CORE_AVAILABLE
  from pytorch_lightning.callbacks.model_checkpoint import ModelCheckpoint
  from torch import Tensor
  from torch.nn import Flatten, Linear, LogSoftmax, Module
  from torch.nn import functional
  from torch.utils.data import DataLoader
  from tests.helpers.boring_model import BoringModel
label_desc: Use image node_id 4 for calling a global function with example usage: test_deepspeed_finetuning_strategy_key(strategy_key, strategy_metadata) without return types