def __init__(self, connection, interval, idle_count=MAX_IDLE_COUNT):
        self._connection = connection
        self._interval = interval
        self._max_idle_count = idle_count

        # Initialize counters
        self._bytes_received = 0
        self._bytes_sent = 0
        self._heartbeat_frames_received = 0
        self._heartbeat_frames_sent = 0
        self._idle_byte_intervals = 0

        # The handle for the last timer
        self._timer = None

        # Setup the timer to fire in _interval seconds
        self._setup_timer()
Create a heartbeat on connection sending a heartbeat frame every
dataset/ETHPy150Open pika/pika/pika/heartbeat.py/HeartbeatChecker.__init__