def render_build_args(options, ns):
build_args = options.get('<STR_LIT>', {})<EOL>for key, value in build_args.items():<EOL><INDENT>build_args[key] = value.format(**ns)<EOL><DEDENT>return build_args<EOL>
Get docker build args dict, rendering any templated args.

    Args:
    options (dict):
        The dictionary for a given image from chartpress.yaml.
        Fields in `options['buildArgs']` will be rendered and returned,
        if defined.
    ns (dict): the namespace used when rendering templated arguments