def pipeline_subcommands() -> dict[str, dict[str, str]]:
    """Get available pipeline subcommands.

    Returns:
        dict[str, dict[str, str]]: Dictionary mapping subcommand names to their descriptions.

    Example:
        Pipeline subcommands are available only if the pipelines are installed::

        >>> pipeline_subcommands()
        {
            'benchmark': {
                'description': 'Run benchmarking pipeline for model evaluation'
            }
        }
    """
    if PIPELINE_REGISTRY is not None:
        return {name: {"description": get_short_docstring(pipeline)} for name, pipeline in PIPELINE_REGISTRY.items()}
    return {}
Get available pipeline subcommands.

    Returns:
        dict[str, dict[str, str]]: Dictionary mapping subcommand names to their descriptions.

    Example:
        Pipeline subcommands are available only if the pipelines are installed::

        >>> pipeline_subcommands()
        {
            'benchmark': {
                'description': 'Run benchmarking pipeline for model evaluation'
            }
        }
    
src/anomalib/cli/pipelines.py