code: def heart_beat(self, project, logstore, consumer_group, consumer, shards=None):
          
          if shards is None:
              shards = []
          request = ConsumerGroupHeartBeatRequest(project, logstore, consumer_group, consumer, shards)
          body_str = request.get_request_body()
          params = request.get_params()
          headers = {"Content-Type": "application/json"}
          resource = "/logstores/" + logstore + "/consumergroups/" + consumer_group
          (resp, header) = self._send('POST', project, body_str, resource, params, headers)
          return ConsumerGroupHeartBeatResponse(resp, header)
docs: Heatbeat consumer group
  
          :type project: string
          :param project: project name
  
          :type logstore: string
          :param logstore: logstore name
  
          :type consumer_group: string
          :param consumer_group: consumer group name
  
          :type consumer: string
          :param consumer: consumer name
  
          :type shards: int list
          :param shards: shard id list e.g. [0,1,2]
  
          :return: None