def METHOD_NAME(x, y, coord_mapping, parser, ds_files):
    precision = {'f': 4, 'd': 8}
    ds_files.find_ibd_key()
    ibd_key = ds_files.ibd_key
    bucket = ds_files.upload_bucket
    if (x, y) in coord_mapping:
        index = coord_mapping[(x, y)]
        mz_offset = parser.mzOffsets[index]
        mz_length = parser.mzLengths[index] * precision[parser.mzPrecision]
        mzs = np.frombuffer(
            ds_files.read_file_partially(mz_offset, mz_length, ibd_key, bucket=bucket),
            dtype=parser.mzPrecision,
        )
        intensity_offset = parser.intensityOffsets[index]
        intensity_length = parser.intensityLengths[index] * precision[parser.intensityPrecision]
        ints = np.frombuffer(
            ds_files.read_file_partially(
                intensity_offset,
                intensity_length,
                ibd_key,
                bucket,
            ),
            dtype=parser.intensityPrecision,
        )
    else:
        mzs, ints = np.array([]), np.array([])
    return mzs, ints