def load_step_file(source_path: str) -> str:
    """
    Loads the source for a step file at the given path location and then
    renders it in a template to add additional footer data.

    The footer is used to force the display to flush the print buffer and
    breathe the step to open things up for resolution. This shouldn't be
    necessary, but it seems there's an async race condition with print
    buffers that is hard to reproduce and so this is in place to fix the
    problem.
    """

    return templating.render_template(
        template_name='embedded-step.py.txt',
        source_contents=get_file_contents(source_path)
    )
Loads the source for a step file at the given path location and then
    renders it in a template to add additional footer data.

    The footer is used to force the display to flush the print buffer and
    breathe the step to open things up for resolution. This shouldn't be
    necessary, but it seems there's an async race condition with print
    buffers that is hard to reproduce and so this is in place to fix the
    problem.