code: def _check_sig_dims(sig, read_len, n_sig, samps_per_frame):
      
      if isinstance(sig, np.ndarray):
          if sig.shape != (read_len, n_sig):
              raise ValueError('Samples were not loaded correctly')
      else:
          if len(sig) != n_sig:
              raise ValueError('Samples were not loaded correctly')
          for ch in range(n_sig):
              if len(sig[ch]) != samps_per_frame[ch] * read_len:
                  raise ValueError('Samples were not loaded correctly')
docs: Integrity check of a signal's shape after reading.