code: def __calculate_piece_sizes(
      array: np.ndarray,
      max_piece_size: int,
      name: str,
      sample_rate: int,
  ) -> (int, int, int):
      array_size = size(array)
      divisions = int(array_size / max_piece_size) + 1
      debug(f"The {name} will be didived into {divisions} pieces")
  
      piece_size = int(array_size / divisions)
      debug(
          f"One piece of the {name} has a length of {piece_size} samples or {piece_size / sample_rate:.2f} seconds"
      )
  
      return array_size, divisions, piece_size
  
file_path: matchering/matchering/stage_helpers/match_levels.py
imports: import numpy
  from ..log import debug
  from ..None import Config
  from ..utils import to_db
  from ..dsp import lr_to_ms, size, unfold, batch_rms, rms, amplify, normalize
label_desc: Use image node_id 2 for calling a global function with example usage: __calculate_piece_sizes(array, max_piece_size, name, sample_rate) and returns: array_size,  divisions,  piece_size