def METHOD_NAME(image):
    secids = [s.image_id for s in image.encryption_config.base_key_secrets]
    if image.base_tag in secids:
        image.create(params)
    else:
        base_params = params.object_params(image.base_tag)
        backing_file = "'%s'" % get_image_json(
                image.base_tag, base_params, get_data_dir())
        cmd = '{cmd} create -F {base_fmt} -b {backing} -f {fmt} {f} {size}'
        qemu_img_cmd = cmd.format(cmd=image.image_cmd,
                                  base_fmt=base_params['image_format'],
                                  backing=backing_file,
                                  fmt=image.image_format,
                                  f=image.image_filename,
                                  size=image.size)
        msg = "Create image by command: %s" % qemu_img_cmd
        LOG_JOB.info(msg)
        cmd_result = process.run(
            qemu_img_cmd, shell=True, verbose=False, ignore_status=False)