'Create a heartbeat checker instance if there is a heartbeat interval
set.
:rtype: pika.heartbeat.Heartbeat'

def _create_heartbeat_checker(self):

    if ((self.params.heartbeat is not None) and (self.params.heartbeat > 0)):
        LOGGER.debug('Creating    a    HeartbeatChecker:    %r', self.params.heartbeat)
        return heartbeat.HeartbeatChecker(self, self.params.heartbeat)
