You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: pallet_im_online.rs
    path of file: ./repos/joystream/runtime/src/weights
    
    the code of the file until where you have to start completion: // This file is part of Substrate.

// Copyright (C) 2022 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0

// Licensed under the Apache License, Version 2.0 (the "License");
// you may not us
    
	fn validate_unsigned_and_then_heartbeat(k: u32, e: u32, ) -> Weight {
		(0 as Weight)
			// Standard Error: 3_000
			.saturating_add((181_000 as Weight).saturating_mul(k as Weight))
			// Standard Error: 33_000
			.saturating_add((1_320_000 as Weight).saturating_mul(e as Weight))
			.saturating_add(T::DbWeight::get().reads(4 as Weight))
			.saturating_add(T::DbWeight::get().writes(1 as Weight))
	}