code: def test_get_bfloat16_enabled(bf16_key):
      cfg = {
          bf16_key: {
              "enabled": True,
          },
      }
      assert get_bfloat16_enabled(cfg) == True
  
imports: import os
  import pytest
  import json
  import hjson
  import argparse
  from deepspeed.runtime.zero.config import DeepSpeedZeroConfig
  from deepspeed.accelerator import get_accelerator
  from unit.common import DistributedTest, get_test_path
  from unit.simple_model import SimpleModel, create_config_from_dict, random_dataloader
  import deepspeed.comm
  import deepspeed
  from deepspeed.runtime.config import DeepSpeedConfig, get_bfloat16_enabled
label_desc: Use image node_id 6 for calling a global function with example usage: test_get_bfloat16_enabled(bf16_key) without return types