def METHOD_NAME(ctx, analyzer_name, timeline_id, show_dependent):
    """Show the results of an analyzer run on one or more timelines.
    Args:
        ctx: Click CLI context object.
        analyzer_name: Name of the analyzer that was run.
        timeline_id: Timeline ID of the timeline to analyze.
        show_dependent: Show dependent analyzers. (default: False)
            using output_format json will always include the dependent analyzers
    """
    sketch = ctx.obj.sketch
    output = ctx.obj.output_format
    if output not in ("json", "text"):
        click.echo(f"Unsupported output format: [{output}] use [json / text]")
        sys.exit(1)
    timelines = []
    if timeline_id == "all":
        timelines = sketch.list_timelines()
    else:
        timeline = sketch.get_timeline(timeline_id=int(timeline_id))
        timelines.append(timeline)
    for timeline in timelines:
        try:
            sketch_analyzer_results = sketch.get_analyzer_status()
            if output == "json":
                click.echo(
                    json.dumps(
                        sketch_analyzer_results,
                        indent=4,
                        sort_keys=True,
                        default=str,
                    )
                )
            else:
                click.echo(
                    f"Results for analyzer [{analyzer_name}] on [{timeline.name}]:"
                )
                for analyzer in sketch_analyzer_results:
                    if analyzer.get("timeline_id") == int(timeline_id):
                        # find analyzer results using the verbose schema
                        try:
                            # the following will only work for verbose schema
                            analyzer_json = json.loads(analyzer.get("results"))
                            status = analyzer_json.get("result_status")
                            result_priority = analyzer_json.get("result_priority")
                            result_summary = analyzer_json.get("result_summary")
                        except json.decoder.JSONDecodeError:
                            # set values for non verbose
                            status = analyzer.get("status")
                            result_priority = analyzer.get("result_priority")
                            result_summary = analyzer.get("results")
                        if analyzer.get("analyzer") == analyzer_name:
                            click.echo(
                                f"{status} - {result_priority} - {result_summary}"
                            )
                        else:
                            # TODO(jaegeral) consider sorting to show the root
                            # analyzer first
                            if show_dependent:
                                click.echo(
                                    f"Dependent: {status} - {result_priority} \
                                          - {result_summary}"
                                )
        except Exception as e:  # pylint: disable=broad-except
            click.echo(
                f"Unable to get results for analyzer [{analyzer_name}]  \
                    on [{timeline.name}]: {e}"
            )
            sys.exit(1)