def METHOD_NAME(self, total, normalized_by_cpu_count):
    if total:
        grouping = ""
    else:
        grouping = "by (pod)"
    if normalized_by_cpu_count:
        # we divide by the number of machine_cpu_cores to return a result in th 0-1 range regardless of cpu count
        normalization = f'/ scalar(sum (machine_cpu_cores{{node="{self.node.metadata.name}"}}))'
    else:
        normalization = ""
    # note: it is important to set either image!="" or image="" because otherwise we count everything twice -
    # once for the whole pod (image="") and once for each container (image!="")
    return (
        f"sum(rate("
        f'           container_cpu_usage_seconds_total{{node="{self.node.metadata.name}",pod!="",image!=""}}[{self.range_size}]'
        f")) {grouping} {normalization}"
    )