def _default_sample_ids(path: PathType) -> ArrayLike:
    'Fetch or generate sample ids'
    with bgen_file(path) as bgen:
        if bgen.contain_samples:
            return bgen.read_samples()
        else:
            return np.char.add(b'sample_', np.arange(bgen.nsamples).astype('S'))
Fetch or generate sample ids
def _default_sample_ids(path: PathType) -> ArrayLike:
    
    with bgen_file(path) as bgen:
        if bgen.contain_samples:
            return bgen.read_samples()
        else:
            return np.char.add(b'sample_', np.arange(bgen.nsamples).astype('S'))