@classmethod
def fromfile(cls, fileobj, mode=None, memmap=None, save_backup=False, cache
    =True, lazy_load_hdus=True, **kwargs):
    """
        Creates an `HDUList` instance from a file-like object.

        The actual implementation of ``fitsopen()``, and generally shouldn't
        be used directly.  Use :func:`open` instead (and see its
        documentation for details of the parameters accepted by this method).
        """
    return cls._readfrom(fileobj=fileobj, mode=mode, memmap=memmap,
        save_backup=save_backup, cache=cache, lazy_load_hdus=lazy_load_hdus,
        **kwargs)
