code: def set_accelerator(accel_obj):
      global ds_accelerator
      _validate_accelerator(accel_obj)
      if accel_logger is not None:
          accel_logger.info(
              f"Setting ds_accelerator to {accel_obj._name} (model specified)"
          )
      ds_accelerator = accel_obj
  
imports: import os
label_desc: Use image node_id 4 for calling a global function with example usage: set_accelerator(accel_obj) without return types