A person who fabricates false evidence with intent to defeat, obstruct, or pervert the course of justice in any proceeding is liable to the same punishment as if he or she had committed perjury in that proceeding.