def METHOD_NAME(term):
    """Get metrics based on search term
    :type term: str
    """
    metrics = raw_metric_query(term)
    if not metrics:
        term += '*'
        metrics = raw_metric_query(term)
    if len(metrics) > 1 and is_all_leaves(metrics):
        metrics.insert(0, {'id': term, 'expandable': False})
    return metrics