code: def prepare_envs(args):
      """
      Set random seed and the device.
      """
  
      utils.set_seed(args.seed)
      utils.show_env_info()
  
      env_info = utils.get_sys_env()
      place = "gpu" if env_info["GPUs used"] else "cpu"
      utils.set_device(place)
  
file_path: PaddleSeg/deploy/slim/distill/distill_train.py
imports: import argparse
  from paddleslim.dygraph.dist import Distill
  from paddleseg.cvlibs import Config, SegBuilder
  from paddleseg.utils import logger, utils
  from distill_utils import distill_train
  from distill_config import prepare_distill_adaptor, prepare_distill_config
label_desc: Use image node_id 2 for calling a global function with example usage: prepare_envs(args) without return types