def save(filepath, obj, compressed=True):
    """
    Save the object to a .npz file.

    Parameters
    ----------
    filepath : str
        The path to save the file.
    obj: `pypianoroll.Multitrack` objects
        The object to be saved.

    """
    if not isinstance(obj, Multitrack):
        raise TypeError("Support only `pypianoroll.Multitrack` class objects")
    obj.save(filepath, compressed)
def save ( filepath , obj , compressed = True ) : if not isinstance ( obj , Multitrack ) : raise TypeError ( "Support only `pypianoroll.Multitrack` class objects" ) obj . save ( filepath , compressed )
Save the object to a .npz file.

    Parameters
    ----------
    filepath : str
        The path to save the file.
    obj: `pypianoroll.Multitrack` objects
        The object to be saved.