def check_versions():
    from ._compat import pkg_version
    umap_version = pkg_version('umap-learn')
    if (version.parse(anndata_version) < version.parse('0.6.10')):
        from . import __version__
        raise ImportError(f'''Scanpy {__version__} needs anndata version >=0.6.10, not {anndata_version}.
Run `pip install anndata -U --no-deps`.''')
    if (umap_version < version.parse('0.3.0')):
        from . import __version__
        logg.warning(f'Scanpy {__version__} needs umap version >=0.3.0, not {umap_version}.')
def check_versions():
    from ._compat import pkg_version
    umap_version = pkg_version('umap-learn')
    if (version.parse(anndata_version) < version.parse('0.6.10')):
        from . import __version__
        raise ImportError(f'Scanpy {__version__} needs anndata version >=0.6.10, not {anndata_version}.
Run `pip install anndata -U --no-deps`.')
    if (umap_version < version.parse('0.3.0')):
        from . import __version__
        logg.warning(f'Scanpy {__version__} needs umap version >=0.3.0, not {umap_version}.')