def METHOD_NAME(self, ext, subtype, bits_per_sample):
    """Query audio via file-like object works"""
    duration = 2
    sample_rate = 16000
    num_channels = 2
    num_frames = sample_rate * duration
    path = self.get_temp_path(f"test.{ext}")
    #data = torch.randn(num_frames, num_channels).numpy()
    data = paddle.randn(shape=[num_frames, num_channels]).numpy()
    soundfile.write(path, data, sample_rate, subtype=subtype)
    with open(path, "rb") as fileobj:
        info = soundfile_backend.info(fileobj)
    assert info.sample_rate == sample_rate
    assert info.num_frames == num_frames
    assert info.num_channels == num_channels
    assert info.bits_per_sample == bits_per_sample
    assert info.encoding == "FLAC" if ext == "flac" else "PCM_S"