(labels)
return True
Return whether a metric is about a container or not.
        It can be about pods, or even higher levels in the cgroup hierarchy
        and we don't want to report on that.
        :param metric:
        :return: bool
Return whether a metric is about a container or not.
        It can be about pods, or even higher levels in the cgroup hierarchy
        and we don't want to report on that.
        :param metric:
        :return: bool
Return whether a metric is about a container or not . It can be about pods or even higher levels in the cgroup hierarchy and we don t want to report on that . : param metric : : return : bool
def _is_container_metric(labels):
        """
        Return whether a metric is about a container or not.
        It can be about pods, or even higher levels in the cgroup hierarchy
        and we don't want to report on that.
        :param metric:
        :return: bool
        """
        label_set = set(labels)
        if POST_1_16_CONTAINER_LABELS.issubset(label_set):
            if labels.get('container') in ['', 'POD']:
                return False
        elif PRE_1_16_CONTAINER_LABELS.issubset(label_set):
            if labels.get('container_name') in ['', 'POD']:
                return False
        else:
            return False
        return True
def _is_container_metric ( labels ) : label_set = set ( labels ) if POST_1_16_CONTAINER_LABELS . issubset ( label_set ) : if labels . get ( 'container' ) in [ '' , 'POD' ] : return False elif PRE_1_16_CONTAINER_LABELS . issubset ( label_set ) : if labels . get ( 'container_name' ) in [ '' , 'POD' ] : return False else : return False return True