def METHOD_NAME(self, usage, actions, groups, prefix):
    """Format the usage.
    :param usage: The usage
    :param actions: The actions
    :param groups: The groups
    :param prefix: The prefix
    :returns: The formatted usage
    """
    prefix = "Usage:" if prefix is None else ""
    options = "[options]" if actions else ""
    return " ".join(p for p in (prefix, self._prog, options) if p != "") + "\n\n"