


'''simple docstring'''



from __future__ import annotations







def     _UpperCamelCase      (		UpperCamelCase__ ,      UpperCamelCase__					):
			if partitions <= 0:
						raise ValueError("""partitions must be a positive number!"""					)
			if partitions > number_of_bytes:
						raise ValueError("""partitions can not > number_of_bytes!"""					)
			UpperCAmelCase__  :					Optional[int]        =     number_of_bytes // partitions
			UpperCAmelCase__  :					str        =     []
			for i in range(UpperCamelCase__					):
						UpperCAmelCase__  :					int        =     i * bytes_per_partition + 1
						UpperCAmelCase__  :					int        =     (
						    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'''



import warnings
from functools import wraps
from typing import Callable







def     _UpperCamelCase      (		UpperCamelCase__					):

			@wraps(UpperCamelCase__					)
			def _inner_fn(*UpperCamelCase__ ,      **UpperCamelCase__					):
						warnings.warn(
						    (f'''\'{fn.__name__}\' is experimental and might be subject to breaking changes in the future.''') ,      UpperCamelCase__ ,      )
						return fn(*UpperCamelCase__ ,      **UpperCamelCase__					)

			return _inner_fn