<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def render_from_path(path, context=None, globals=None):
 """ Renders a templated yaml document from file path. :param path: A path to the yaml file to process. :param context: A context to overlay on the yaml file. This will override any yaml values. :param globals: A dictionary of globally-accessible objects within the rendered template. :return: A dict with the final overlayed configuration. """

    abs_source = os.path.abspath(os.path.expanduser(path))
    yaml_resolver = resolver.TYamlResolver.new_from_path(abs_source)

    return yaml_resolver.resolve(Context(context), globals)._data