code: def replace_customer_group_by_id(cls, customer_group_id, customer_group, **kwargs):
          
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async'):
              return cls._replace_customer_group_by_id_with_http_info(customer_group_id, customer_group, **kwargs)
          else:
              (data) = cls._replace_customer_group_by_id_with_http_info(customer_group_id, customer_group, **kwargs)
              return data
docs: Replace CustomerGroup
  
          Replace all attributes of CustomerGroup
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async=True
          >>> thread = api.replace_customer_group_by_id(customer_group_id, customer_group, async=True)
          >>> result = thread.get()
  
          :param async bool
          :param str customer_group_id: ID of customerGroup to replace (required)
          :param CustomerGroup customer_group: Attributes of customerGroup to replace (required)
          :return: CustomerGroup
                   If the method is called asynchronously,
                   returns the request thread.