<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _read_n_samples(channel_file):
 """Calculate the number of samples based on the file size Parameters channel_file : Path path to single filename with the header Returns ------- int number of blocks (i.e. records, in which the data is cut) int number of samples """

    n_blocks = int((channel_file.stat().st_size - HDR_LENGTH) / BLK_SIZE)
    n_samples = n_blocks * BLK_LENGTH
    return n_blocks, n_samples