def test_random_color_py_md5():
    '\n    Test Python RandomColor with md5 check\n    '
    logger.info('Test RandomColor with md5 check')
    original_seed = config_get_set_seed(10)
    original_num_parallel_workers = config_get_set_num_parallel_workers(1)
    data = ds.ImageFolderDataset(dataset_dir=DATA_DIR, shuffle=False)
    transforms = mindspore.dataset.transforms.py_transforms.Compose([F.Decode(), F.RandomColor((2.0, 2.5)), F.ToTensor()])
    data = data.map(operations=transforms, input_columns='image')
    filename = 'random_color_01_result.npz'
    save_and_check_md5(data, filename, generate_golden=GENERATE_GOLDEN)
    ds.config.set_seed(original_seed)
    ds.config.set_num_parallel_workers(original_num_parallel_workers)
Test Python RandomColor with md5 check
def test_random_color_py_md5():
    '\n    \n    '
    logger.info('Test RandomColor with md5 check')
    original_seed = config_get_set_seed(10)
    original_num_parallel_workers = config_get_set_num_parallel_workers(1)
    data = ds.ImageFolderDataset(dataset_dir=DATA_DIR, shuffle=False)
    transforms = mindspore.dataset.transforms.py_transforms.Compose([F.Decode(), F.RandomColor((2.0, 2.5)), F.ToTensor()])
    data = data.map(operations=transforms, input_columns='image')
    filename = 'random_color_01_result.npz'
    save_and_check_md5(data, filename, generate_golden=GENERATE_GOLDEN)
    ds.config.set_seed(original_seed)
    ds.config.set_num_parallel_workers(original_num_parallel_workers)