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)

    Set random seed and the device.
    
deploy/slim/distill/distill_train.py