def METHOD_NAME(self):
    with patch.object(torch._C, "_get_upgraders_entry_map", return_value={}), \
            patch.object(torch._C, "_get_operator_version_map", return_value=TEST_OP_VERSION_MAP):
        with self.assertRaises(RuntimeError):
            get_upgraders()