def METHOD_NAME(in_file_name, out_file_name=None, debug=False):
    """Converts in_file (mzml) to binary and stores it in out_file
    """
    debug = debug or DEBUG
    if debug:
        sys.stdout.write("STATUS: Converting %s to %s (mzML to HDF)" %
              (in_file_name, out_file_name))
        sys.stdout.flush()
    # Extra accessions for pymzml to read
    extraAccessions = [
        ('MS:1000016', ['value', 'unitName']),  # scan start time
        ('MS:1000129', ['name']),  # negative scan
        ('MS:1000130', ['name']),  # positive scan
        ('MS:1000744', ['value']),  # selected ion m/z
        ('MS:1000042', ['value']),  # peak intensity
        ('MS:1000045', ['value']),  # collision energy
        ('MS:1000528', ['value']),  # lowest observed m/z
        ('MS:1000527', ['value']),  # highest observed m/z
        ('MS:1000529', ['value']),  # serial number
    ]
    try:
        mzml_reader = Reader(in_file_name,
                                        extraAccessions=extraAccessions)
    except Exception as e:
        sys.stderr.write('\nMzml error: %s\n' % e)
        sys.stderr.flush()
        raise TypeError('Not a valid mzML file: "%s"' % in_file_name)
    if not out_file_name:
        out_file_name = in_file_name.replace('.mzML', '.h5')
    FILTERS = tables.Filters(complib='blosc', complevel=1)
    out_file = tables.open_file(out_file_name, "w", filters=FILTERS)
    try:
        _convert(out_file, mzml_reader, debug)
    except Exception as e:
        sys.stderr.write('\nConversion error:\n')
        traceback.print_exception(*sys.exc_info())
        sys.stderr.flush()
        sys.stdout.flush()
        raise
    finally:
        out_file.close()
    return out_file_name