def ensure_plugin_requirements(
    plugin_name, error_level=None, log_success=False
):
    """Ensures that any Python package requirements associated with the given
    plugin are installed.

    Args:
        plugin_name: the plugin name
        error_level (None): the error level to use, defined as:

            -   0: raise error if requirement is not satisfied
            -   1: log warning if requirement is not satisfied
            -   2: ignore unsatisifed requirements

            By default, ``fiftyone.config.requirement_error_level`` is used
        log_success (False): whether to generate a log message if a requirement
            is satisfied
    """

    req_path = _find_requirements(plugin_name)
    if req_path:
        fou.ensure_requirements(
            req_path, error_level=error_level, log_success=log_success
        )
Ensures that any Python package requirements associated with the given
    plugin are installed.

    Args:
        plugin_name: the plugin name
        error_level (None): the error level to use, defined as:

            -   0: raise error if requirement is not satisfied
            -   1: log warning if requirement is not satisfied
            -   2: ignore unsatisifed requirements

            By default, ``fiftyone.config.requirement_error_level`` is used
        log_success (False): whether to generate a log message if a requirement
            is satisfied
    
fiftyone/plugins/core.py