pub fn transform_with_base_dir( rule: &RuleFile, input: &str, context: Option<&Value>, base_dir: &Path, ) -> Result<Value, TransformError>