code: def update_consumer_group(self, project, logstore, consumer_group, timeout=None, in_order=None):
          
          if in_order is None and timeout is None:
              raise ValueError('in_order and timeout can\'t all be None')
          elif in_order is not None and timeout is not None:
              body_dict = {
                  'order': in_order,
                  'timeout': timeout
              }
          elif in_order is not None:
              body_dict = {
                  'order': in_order
              }
          else:
              body_dict = {
                  'timeout': timeout
              }
          body_str = six.b(json.dumps(body_dict))
  
          headers = {
              "x-log-bodyrawsize": str(len(body_str)),
              "Content-Type": "application/json"
          }
          params = {}
          resource = "/logstores/" + logstore + "/consumergroups/" + consumer_group
          (resp, header) = self._send("PUT", project, body_str, resource, params, headers)
          return UpdateConsumerGroupResponse(header, resp)
docs: Update 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 timeout: int
          :param timeout: timeout
  
          :type in_order: bool
          :param in_order: order
  
          :return: None