def METHOD_NAME(file_path, configs):
    meta = torchaudio.info(file_path)
    if meta.num_channels > 1:
        channel = np.random.randint(0, meta.num_channels - 1)
    else:
        channel = 0
    assert (
        meta.sample_rate == configs["samplerate"]
    ), "file samplerate is different from the one specified"
    return meta, channel