def METHOD_NAME(context, path, **kwargs):
    """Return an AMO api url, given path and arguments.
    Uses `context.config['amo_server'] to populate the hostname, followed by `path`
    Calls str.format() on the path with arguments in kwargs.
    """
    amo_instance = get_amo_instance_config_from_scope(context)
    server = amo_instance["amo_server"]
    if "{" in path:
        path = path.format(**kwargs)
    return "{}/{}".format(server, path)