Parameters
    ----------
    plugin_package : str
        Name of plugin package hosted on MicroDrop plugin index. Version
        constraints are also supported (e.g., ``"foo", "foo==1.0",
        "foo>=1.0"``, etc.)  See `version specifiers`_ reference for more
        details.
    server_url : str
        URL of JSON request for MicroDrop plugins package index.  See
        ``DEFAULT_SERVER_URL`` for default.

    Returns
    -------
    (str, OrderedDict)
        Name of found plugin and mapping of version strings to plugin package
        metadata dictionaries.


    .. _version specifiers:
        https://www.python.org/dev/peps/pep-0440/#version-specifiers

    .. versionchanged:: 0.25.2
        Import `pip_helpers` locally to avoid error `sci-bots/mpm#5`_.

        .. _sci-bots/mpm#5: https://github.com/sci-bots/mpm/issues/5

def search(plugin_package, server_url=DEFAULT_SERVER_URL):
    '''
    Parameters
    ----------
    plugin_package : str
        Name of plugin package hosted on MicroDrop plugin index. Version
        constraints are also supported (e.g., ``"foo", "foo==1.0",
        "foo>=1.0"``, etc.)  See `version specifiers`_ reference for more
        details.
    server_url : str
        URL of JSON request for MicroDrop plugins package index.  See
        ``DEFAULT_SERVER_URL`` for default.

    Returns
    -------
    (str, OrderedDict)
        Name of found plugin and mapping of version strings to plugin package
        metadata dictionaries.


    .. _version specifiers:
        https://www.python.org/dev/peps/pep-0440/#version-specifiers

    .. versionchanged:: 0.25.2
        Import `pip_helpers` locally to avoid error `sci-bots/mpm#5`_.

        .. _sci-bots/mpm#5: https://github.com/sci-bots/mpm/issues/5
    '''
    import pip_helpers

    # Look up latest release matching specifiers.
    return pip_helpers.get_releases(plugin_package, server_url=server_url)