Summary: Split from the main diff in the stack. Test Plan: Build validation should be enough. Reviewed By: ezyang Differential Revision: D55313410 Pull Request resolved: https://github.com/pytorch/pytorch/pull/122611 Approved by: https://github.com/ezyang
write_record_metadata