def METHOD_NAME(cls, file):
    """
    Read a NPZ file.
    Parameters
    ----------
    file : file-like object or str
        The file to be read.
        Alternatively a file path can be supplied.
    Returns
    -------
    file_object : NPZFile
        The parsed file.
    """
    npz_file = NpzFile()
    # File name
    if isinstance(file, str):
        with open(file, "rb") as f:
            npz_file._data_dict = dict(np.load(f, allow_pickle=False))
    # File object
    else:
        if not is_binary(file):
            raise TypeError("A file opened in 'binary' mode is required")
        npz_file._data_dict = dict(np.load(file, allow_pickle=False))
    return npz_file