@classmethod
def is_valid(cls, sample_method):
    """Validates sample method

        :param sample_method: sample method to validate
        :type sample_method: int
        :return: True if sample method is valid, False otherwise
        :rtype: boolean
        """
    return sample_method >= cls.BLOCK and sample_method <= cls.STREAM
