pub fn transform_record_with_base_dir( rule: &RuleFile, record: &Value, context: Option<&Value>, base_dir: &Path, ) -> Result<Option<Value>, TransformError>