



'''simple docstring'''

from __future__ import annotations






def 				a  (     UpperCamelCase_    :    int      ,					UpperCamelCase_    :    int			)       ->	list[str]:
		if partitions <= 0:
				raise ValueError('partitions must be a positive number!'			)
		if partitions > number_of_bytes:
				raise ValueError('partitions can not > number_of_bytes!'			)
		snake_case__	     =number_of_bytes // partitions
		snake_case__	     =[]
		for i in range(UpperCamelCase_			):
				snake_case__	     =i * bytes_per_partition + 1
				snake_case__	     =(
				    number_of_bytes if i == partitions - 1 else (i + 1) * bytes_per_partition
				)
				allocation_list.append(f"""{start_bytes}-{end_bytes}"""			)
		return allocation_list


if __name__ == "__main__":
			import doctest

			doctest.testmod()









'''simple docstring'''

from typing import TYPE_CHECKING

from ...utils import _LazyModule


SCREAMING_SNAKE_CASE__     :						Dict	=  {'''tokenization_wav2vec2_phoneme''': ['''Wav2Vec2PhonemeCTCTokenizer''']}


if TYPE_CHECKING:
			from .tokenization_wavaveca_phoneme import WavaVecaPhonemeCTCTokenizer
else:
			import sys

			SCREAMING_SNAKE_CASE__     :						Dict	=  _LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)




