def METHOD_NAME(param: Union[Parameter, BodyParameter], param_value: Any) -> str:
    if isinstance(param_value, str):
        if any(i in param_value for i in '\r\n"'):
            return f'"""{param_value}"""'
    return param.type.serialize_sample_value(param_value)