SEC. 15. And be it further enacted, That all the said courts of the United States, shall have power in the trial of actions at law, on motion and due notice thereof being given, to require the parties to produce books or writings in their possession or power, which contain evidence pertinent to the issue, in cases and under circumstances where they might be compelled to produce the same by the ordinary rules of proceeding in chancery; and if a plaintiff shall fail to comply with such order, to produce books or writings, it shall be lawful for the courts respectively, on motion, to give the like judgment for the defendant as in cases of nonsuit; and if a defendant shall fail to comply with such order, to produce books or writings, it shall be lawful for the courts respectively on motion as aforesaid, to give judgment against him or her by default.